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

Unified Diff: gpu/ipc/service/stream_texture_android.h

Issue 2268173002: Add StreamTexture resgistration for the Browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/stream_texture_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/stream_texture_android.h
diff --git a/gpu/ipc/service/stream_texture_android.h b/gpu/ipc/service/stream_texture_android.h
index 369cf3abf885edc63fe779c171b28e03ee814c4d..5ce78b94769275a093bf4a6666974ffc9df18f59 100644
--- a/gpu/ipc/service/stream_texture_android.h
+++ b/gpu/ipc/service/stream_texture_android.h
@@ -80,6 +80,7 @@ class StreamTexture : public gpu::gles2::GLStreamTextureImage,
// IPC message handlers:
void OnStartListening();
void OnEstablishPeer(int32_t primary_id, int32_t secondary_id);
+ void OnRegisterStreamTexture(int32_t surface_texture_id);
void OnSetSize(const gfx::Size& size) { size_ = size; }
scoped_refptr<gl::SurfaceTexture> surface_texture_;
@@ -105,6 +106,8 @@ class StreamTexture : public gpu::gles2::GLStreamTextureImage,
unsigned vertex_buffer_;
int u_xform_location_;
+ int registered_surface_texture_id;
+
base::WeakPtrFactory<StreamTexture> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(StreamTexture);
};
« no previous file with comments | « gpu/ipc/common/gpu_messages.h ('k') | gpu/ipc/service/stream_texture_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698