Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 1417853006: gpu: introduce glSetStreamTextureSizeCHROMIUM(GLuint texture, GLint stream_id, GLsizei width, GLsiz… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview.test failure Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index 910cd91b322e457037d536ec82b0e2acbb540ef5..65b85b9ce79cf2e9a1c2b0363409372e86ccf8ac 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -52,6 +52,10 @@ class GpuVideoEncodeAccelerator;
class GpuWatchdog;
struct WaitForCommandState;
+#if defined(OS_ANDROID)
+class StreamTextureManager;
+#endif
+
class GpuCommandBufferStub
: public GpuMemoryManagerClient,
public IPC::Listener,
@@ -223,6 +227,10 @@ class GpuCommandBufferStub
void OnCreateStreamTexture(uint32 texture_id,
int32 stream_id,
bool* succeeded);
+ void OnSetStreamTextureSize(uint32 texture_id,
+ int32 stream_id,
+ size_t width,
+ size_t height);
void OnCommandProcessed();
void OnParseError();
@@ -305,6 +313,10 @@ class GpuCommandBufferStub
scoped_ptr<WaitForCommandState> wait_for_token_;
scoped_ptr<WaitForCommandState> wait_for_get_offset_;
+#if defined(OS_ANDROID)
+ scoped_ptr<StreamTextureManager> stream_texture_manager_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
};

Powered by Google App Engine
This is Rietveld 408576698