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

Unified Diff: content/renderer/gpu/compositor_output_surface.h

Issue 20185002: ContextProvider in OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: contextprovider: fix android output surface impls 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: content/renderer/gpu/compositor_output_surface.h
diff --git a/content/renderer/gpu/compositor_output_surface.h b/content/renderer/gpu/compositor_output_surface.h
index ff598725e65decd7efb20b1ce3132df69c1b8139..3ba2745069bc4067d21f9be90a06d818ab04a9d7 100644
--- a/content/renderer/gpu/compositor_output_surface.h
+++ b/content/renderer/gpu/compositor_output_surface.h
@@ -31,7 +31,7 @@ class CompositorFrameAck;
}
namespace content {
-
+class ContextProviderCommandBuffer;
class WebGraphicsContext3DCommandBufferImpl;
// This class can be created only on the main thread, but then becomes pinned
@@ -43,11 +43,12 @@ class CompositorOutputSurface
static IPC::ForwardingMessageFilter* CreateFilter(
base::TaskRunner* target_task_runner);
- CompositorOutputSurface(int32 routing_id,
- uint32 output_surface_id,
- WebGraphicsContext3DCommandBufferImpl* context3d,
- cc::SoftwareOutputDevice* software,
- bool use_swap_compositor_frame_message);
+ CompositorOutputSurface(
+ int32 routing_id,
+ uint32 output_surface_id,
+ const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
+ scoped_ptr<cc::SoftwareOutputDevice> software,
+ bool use_swap_compositor_frame_message);
virtual ~CompositorOutputSurface();
// cc::OutputSurface implementation.
@@ -97,6 +98,7 @@ class CompositorOutputSurface
bool use_swap_compositor_frame_message_;
+ WebGraphicsContext3DCommandBufferImpl* command_buffer_context_;
scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_;
scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
scoped_refptr<IPC::SyncMessageFilter> message_sender_;

Powered by Google App Engine
This is Rietveld 408576698