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

Unified Diff: cc/output/gl_renderer.h

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use kTopLeft Created 7 years, 7 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: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index c83169dfc6acd3b2b4925c7ce0a9bbd476613f3f..61f41b7a161c8c61b2cf7f55fb4c49e503794839 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -45,7 +45,8 @@ class CC_EXPORT GLRenderer
static scoped_ptr<GLRenderer> Create(RendererClient* client,
OutputSurface* output_surface,
ResourceProvider* resource_provider,
- int highp_threshold_min);
+ int highp_threshold_min,
+ bool use_ganesh);
virtual ~GLRenderer();
@@ -85,6 +86,7 @@ class CC_EXPORT GLRenderer
bool IsBackbufferDiscarded() const { return is_backbuffer_discarded_; }
bool Initialize();
+ void InitializeGrContext();
const gfx::QuadF& SharedGeometryQuad() const { return shared_geometry_quad_; }
const GeometryBinding* SharedGeometry() const {
@@ -151,6 +153,8 @@ class CC_EXPORT GLRenderer
const YUVVideoDrawQuad* quad);
void DrawPictureQuad(const DrawingFrame* frame,
const PictureDrawQuad* quad);
+ void DrawPictureQuadDirectToBackbuffer(const DrawingFrame* frame,
+ const PictureDrawQuad* quad);
void SetShaderOpacity(float opacity, int alpha_location);
void SetShaderQuadF(const gfx::QuadF& quad, int quad_location);
@@ -206,6 +210,11 @@ class CC_EXPORT GLRenderer
const CopyRenderPassCallback& callback,
bool success);
+ void ReinitializeGrCanvas();
+ void ReinitializeGLState();
+
+ bool CanUseGanesh() const;
+
// WebKit::
// WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackCHROMIUM
// implementation.
@@ -392,6 +401,9 @@ class CC_EXPORT GLRenderer
OutputSurface* output_surface_;
WebKit::WebGraphicsContext3D* context_;
+ skia::RefPtr<class GrContext> gr_context_;
danakj 2013/05/15 20:33:16 need the "class"? I don't see a method with the na
enne (OOO) 2013/05/15 22:34:38 Done.
+ SkAutoTUnref<SkCanvas> sk_canvas_;
danakj 2013/05/15 20:33:16 skia::RefPtr > SkAutoTUnref
enne (OOO) 2013/05/15 22:34:38 Done.
+
gfx::Rect swap_buffer_rect_;
gfx::Rect scissor_rect_;
bool is_viewport_changed_;

Powered by Google App Engine
This is Rietveld 408576698