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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 23234003: Support stream textures with the synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: this time for real Created 7 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
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index 9bdbd49616d2797d382f53b900ae419802a4ddb7..e36bfbd262149741c11dd0bce77841b21ab6e64b 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -31,6 +31,15 @@ class GLSurface;
class Size;
}
+#if defined(OS_ANDROID)
+namespace gfx {
+class SurfaceTextureBridge;
+}
+namespace gpu {
+class StreamTextureManagerInProcess;
+}
+#endif
+
namespace gpu {
namespace gles2 {
@@ -109,6 +118,11 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer {
virtual void QueueTask(const base::Closure& task) = 0;
};
+#if defined(OS_ANDROID)
+ scoped_refptr<gfx::SurfaceTextureBridge> GetSurfaceTexture(
+ uint32 stream_id);
+#endif
+
private:
bool InitializeOnGpuThread(bool is_offscreen,
gfx::AcceleratedWidget window,
@@ -159,6 +173,10 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer {
State state_after_last_flush_;
base::Lock state_after_last_flush_lock_;
+#if defined(OS_ANDROID)
+ scoped_refptr<StreamTextureManagerInProcess> stream_texture_manager_;
+#endif
+
// Only used with explicit scheduling and the gpu thread is the same as
// the client thread.
scoped_ptr<base::SequenceChecker> sequence_checker_;

Powered by Google App Engine
This is Rietveld 408576698