summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-02-15 14:28:17 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-15 14:28:17 -0800
commit9a8cad0c207ae291051e96492bd167cf6e11f863 (patch)
tree1e86fd7c3b0a2de45e83008113db924b5dda6513
parent741ee32b92b59154ba524dd735809fda6211fc5b (diff)
parent4533237f156ff61f2486d0e6d748eafa8ce4d3d3 (diff)
downloadwebkit-9a8cad0c207ae291051e96492bd167cf6e11f863.tar.gz
am 4533237f: Refactoring: Rename SurfaceTextureClient to Surface
* commit '4533237f156ff61f2486d0e6d748eafa8ce4d3d3': Refactoring: Rename SurfaceTextureClient to Surface
-rw-r--r--Source/WebCore/platform/graphics/android/layers/CanvasTexture.cpp8
-rw-r--r--Source/WebCore/platform/graphics/android/layers/CanvasTexture.h6
-rw-r--r--Source/WebCore/platform/graphics/android/layers/MediaLayer.h4
-rw-r--r--Source/WebCore/platform/graphics/android/layers/MediaListener.h2
-rw-r--r--Source/WebCore/platform/graphics/android/layers/MediaTexture.cpp4
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/GaneshRenderer.cpp2
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/TextureInfo.cpp2
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp2
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp4
9 files changed, 17 insertions, 17 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/CanvasTexture.cpp b/Source/WebCore/platform/graphics/android/layers/CanvasTexture.cpp
index dca0dcdbf..66a4e1edc 100644
--- a/Source/WebCore/platform/graphics/android/layers/CanvasTexture.cpp
+++ b/Source/WebCore/platform/graphics/android/layers/CanvasTexture.cpp
@@ -42,7 +42,7 @@
#include <android/native_window.h>
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
namespace WebCore {
@@ -98,7 +98,7 @@ void CanvasTexture::setSize(const IntSize& size)
}
}
-SurfaceTextureClient* CanvasTexture::nativeWindow()
+Surface* CanvasTexture::nativeWindow()
{
android::Mutex::Autolock lock(m_surfaceLock);
if (m_ANW.get())
@@ -108,7 +108,7 @@ SurfaceTextureClient* CanvasTexture::nativeWindow()
if (!useSurfaceTexture())
return 0;
m_surfaceTexture = new android::GLConsumer(m_texture, false);
- m_ANW = new android::SurfaceTextureClient(m_surfaceTexture->getBufferQueue());
+ m_ANW = new android::Surface(m_surfaceTexture->getBufferQueue());
int result = native_window_set_buffers_format(m_ANW.get(), HAL_PIXEL_FORMAT_RGBA_8888);
GLUtils::checkSurfaceTextureError("native_window_set_buffers_format", result);
if (result == NO_ERROR) {
@@ -127,7 +127,7 @@ SurfaceTextureClient* CanvasTexture::nativeWindow()
bool CanvasTexture::uploadImageBuffer(ImageBuffer* imageBuffer)
{
m_hasValidTexture = false;
- SurfaceTextureClient* anw = nativeWindow();
+ Surface* anw = nativeWindow();
if (!anw)
return false;
// Size mismatch, early abort (will fall back to software)
diff --git a/Source/WebCore/platform/graphics/android/layers/CanvasTexture.h b/Source/WebCore/platform/graphics/android/layers/CanvasTexture.h
index f8c2f9571..15f075ecb 100644
--- a/Source/WebCore/platform/graphics/android/layers/CanvasTexture.h
+++ b/Source/WebCore/platform/graphics/android/layers/CanvasTexture.h
@@ -35,7 +35,7 @@
namespace android {
class GLConsumer;
-class SurfaceTextureClient;
+class Surface;
}
namespace WebCore {
@@ -53,7 +53,7 @@ public:
* Called by WebKit thread
********************************************/
void setSize(const IntSize& size);
- SurfaceTextureClient* nativeWindow();
+ Surface* nativeWindow();
bool uploadImageBuffer(ImageBuffer* imageBuffer);
bool hasValidTexture() { return m_hasValidTexture; }
@@ -82,7 +82,7 @@ private:
GLuint m_texture;
android::Mutex m_surfaceLock;
sp<android::GLConsumer> m_surfaceTexture;
- sp<android::SurfaceTextureClient> m_ANW;
+ sp<android::Surface> m_ANW;
bool m_hasValidTexture;
bool m_useHwAcceleration;
diff --git a/Source/WebCore/platform/graphics/android/layers/MediaLayer.h b/Source/WebCore/platform/graphics/android/layers/MediaLayer.h
index 188252b51..fb24d1c82 100644
--- a/Source/WebCore/platform/graphics/android/layers/MediaLayer.h
+++ b/Source/WebCore/platform/graphics/android/layers/MediaLayer.h
@@ -47,7 +47,7 @@ public:
void invertContents(bool invert) { m_mediaTexture->invertContents(invert); }
void setOutlineSize(int size) { m_outlineSize = size; }
- // function to setup the primary SurfaceTextureClient in the renderer's context
+ // function to setup the primary Surface in the renderer's context
ANativeWindow* acquireNativeWindowForContent();
// functions to manipulate secondary layers for video playback
@@ -60,7 +60,7 @@ private:
bool m_isCopy;
int m_outlineSize;
- // SurfaceTextureClient member variables
+ // Surface member variables
MediaTexture* m_mediaTexture;
};
diff --git a/Source/WebCore/platform/graphics/android/layers/MediaListener.h b/Source/WebCore/platform/graphics/android/layers/MediaListener.h
index f02ff7c8b..74eb59a9a 100644
--- a/Source/WebCore/platform/graphics/android/layers/MediaListener.h
+++ b/Source/WebCore/platform/graphics/android/layers/MediaListener.h
@@ -20,7 +20,7 @@
#if USE(ACCELERATED_COMPOSITING)
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
#include <jni.h>
#include <JNIUtility.h>
#include "MediaTexture.h"
diff --git a/Source/WebCore/platform/graphics/android/layers/MediaTexture.cpp b/Source/WebCore/platform/graphics/android/layers/MediaTexture.cpp
index 67324c7b6..b001c1a5e 100644
--- a/Source/WebCore/platform/graphics/android/layers/MediaTexture.cpp
+++ b/Source/WebCore/platform/graphics/android/layers/MediaTexture.cpp
@@ -30,7 +30,7 @@
#include <android/native_window.h>
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
#include <JNIUtility.h>
#include "WebCoreJni.h"
@@ -281,7 +281,7 @@ MediaTexture::TextureWrapper* MediaTexture::createTexture()
// populate the wrapper
glGenTextures(1, &wrapper->textureId);
wrapper->surfaceTexture = new android::GLConsumer(wrapper->textureId);
- wrapper->nativeWindow = new android::SurfaceTextureClient(
+ wrapper->nativeWindow = new android::Surface(
wrapper->surfaceTexture->getBufferQueue());
wrapper->dimensions.setEmpty();
diff --git a/Source/WebCore/platform/graphics/android/rendering/GaneshRenderer.cpp b/Source/WebCore/platform/graphics/android/rendering/GaneshRenderer.cpp
index ed57613a1..4eace7c20 100644
--- a/Source/WebCore/platform/graphics/android/rendering/GaneshRenderer.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/GaneshRenderer.cpp
@@ -91,7 +91,7 @@ void GaneshRenderer::renderingComplete(const TileRenderInfo& renderInfo, SkCanva
GaneshContext::instance()->flush();
// In SurfaceTextureMode we must call swapBuffers to unlock and post the
- // tile's ANativeWindow (i.e. SurfaceTextureClient) buffer
+ // tile's ANativeWindow (i.e. Surface) buffer
TransferQueue* tileQueue = TilesManager::instance()->transferQueue();
eglSwapBuffers(eglGetCurrentDisplay(), tileQueue->m_eglSurface);
SkBitmap dummyBitmap;
diff --git a/Source/WebCore/platform/graphics/android/rendering/TextureInfo.cpp b/Source/WebCore/platform/graphics/android/rendering/TextureInfo.cpp
index 714410e95..32237cde4 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TextureInfo.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/TextureInfo.cpp
@@ -31,7 +31,7 @@
#include <JNIUtility.h>
#include <android/native_window.h>
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
namespace WebCore {
diff --git a/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp b/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
index 0ab74aaae..f44f79d14 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/TilesManager.cpp
@@ -43,7 +43,7 @@
#include <android/native_window.h>
#include <cutils/atomic.h>
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
#include <wtf/CurrentTime.h>
// Important: We need at least twice as many textures as is needed to cover
diff --git a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
index 0db91bdf8..81b3ff405 100644
--- a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp
@@ -40,7 +40,7 @@
#include "TilesManager.h"
#include <android/native_window.h>
#include <gui/GLConsumer.h>
-#include <gui/SurfaceTextureClient.h>
+#include <gui/Surface.h>
// For simple webView usage, MINIMAL_SIZE is recommended for memory saving.
// In browser case, EFFICIENT_SIZE is preferred.
@@ -113,7 +113,7 @@ void TransferQueue::initGLResources(int width, int height)
GL_TEXTURE_EXTERNAL_OES, true,
bufferQueue);
#endif
- m_ANW = new android::SurfaceTextureClient(bufferQueue);
+ m_ANW = new android::Surface(bufferQueue);
m_sharedSurfaceTexture->setSynchronousMode(true);
int extraBuffersNeeded = 0;