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

Unified Diff: content/browser/aura/browser_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/browser/aura/browser_compositor_output_surface.h
diff --git a/content/browser/aura/browser_compositor_output_surface.h b/content/browser/aura/browser_compositor_output_surface.h
index 4b891bdc2ef31e19e995f723bb357af1ca6b947e..cafbea5472fe22e2776cec4676997814c0050347 100644
--- a/content/browser/aura/browser_compositor_output_surface.h
+++ b/content/browser/aura/browser_compositor_output_surface.h
@@ -15,7 +15,9 @@ namespace base { class MessageLoopProxy; }
namespace ui { class Compositor; }
namespace content {
+class ContextProviderCommandBuffer;
class ReflectorImpl;
+class WebGraphicsContext3DCommandBufferImpl;
// Adapts a WebGraphicsContext3DCommandBufferImpl into a
// cc::OutputSurface that also handles vsync parameter updates
@@ -25,7 +27,7 @@ class BrowserCompositorOutputSurface
public base::NonThreadSafe {
public:
BrowserCompositorOutputSurface(
- scoped_ptr<WebKit::WebGraphicsContext3D> context,
+ const scoped_refptr<ContextProviderCommandBuffer>& context,
int surface_id,
IDMap<BrowserCompositorOutputSurface>* output_surface_map,
base::MessageLoopProxy* compositor_message_loop,
@@ -44,6 +46,8 @@ class BrowserCompositorOutputSurface
void SetReflector(ReflectorImpl* reflector);
private:
+ WebGraphicsContext3DCommandBufferImpl* command_buffer_context_;
+
int surface_id_;
IDMap<BrowserCompositorOutputSurface>* output_surface_map_;

Powered by Google App Engine
This is Rietveld 408576698