Index: content/common/gpu/stream_texture_android.h |
diff --git a/content/common/gpu/stream_texture_android.h b/content/common/gpu/stream_texture_android.h |
index a761206b2ac297fd24b43d1a70822422b8c3148a..a885818585d506633bbe9437ca7f84d34f98360c 100644 |
--- a/content/common/gpu/stream_texture_android.h |
+++ b/content/common/gpu/stream_texture_android.h |
@@ -12,6 +12,10 @@ |
#include "ui/gl/android/surface_texture.h" |
#include "ui/gl/gl_image.h" |
+namespace ui { |
+class ScopedMakeCurrent; |
+} |
+ |
namespace gfx { |
class Size; |
} |
@@ -54,6 +58,11 @@ class StreamTexture : public gl::GLImage, |
// GpuCommandBufferStub::DestructionObserver implementation. |
void OnWillDestroyStub() override; |
+ scoped_ptr<ui::ScopedMakeCurrent> MakeStubCurrent(); |
+ void DoUpdateTexImage(); |
+ bool DoCopyTexture(const gfx::Point& offset, const gfx::Rect& rect); |
+ |
+ void UpdateTransformMatrix(); |
// Called when a new frame is available for the SurfaceTexture. |
void OnFrameAvailable(); |
@@ -82,8 +91,16 @@ class StreamTexture : public gl::GLImage, |
GpuCommandBufferStub* owner_stub_; |
int32 route_id_; |
bool has_listener_; |
+ bool matrix_modified_; |
uint32 texture_id_; |
+ unsigned framebuffer_; |
+ unsigned vertex_shader_; |
+ unsigned fragment_shader_; |
+ unsigned program_; |
+ unsigned vertex_buffer_; |
+ int u_xform_loc_; |
reveman
2015/12/23 23:11:49
nit: u_xform_location_ for consistency
Tobias Sargeant
2015/12/24 01:28:34
Done.
|
+ |
base::WeakPtrFactory<StreamTexture> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
}; |