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

Unified Diff: cc/output/gl_renderer.h

Issue 23454014: cc: Drop ContextProvider references on the impl thread before quitting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: callbackcontrolcenter: rebase Created 7 years, 3 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
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.h
diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h
index e4bd650eab4c5c4590361d53959e68745cfe697a..44273c280d92a9b4053b979aaa318385343e32a5 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -33,18 +33,21 @@ class PictureDrawQuad;
class ScopedResource;
class StreamVideoDrawQuad;
class TextureDrawQuad;
+class TextureMailboxDeleter;
class GeometryBinding;
class ScopedEnsureFramebufferAllocation;
// Class that handles drawing of composited render layers using GL.
class CC_EXPORT GLRenderer : public DirectRenderer {
public:
- static scoped_ptr<GLRenderer> Create(RendererClient* client,
- const LayerTreeSettings* settings,
- OutputSurface* output_surface,
- ResourceProvider* resource_provider,
- int highp_threshold_min,
- bool use_skia_gpu_backend);
+ static scoped_ptr<GLRenderer> Create(
+ RendererClient* client,
+ const LayerTreeSettings* settings,
+ OutputSurface* output_surface,
+ ResourceProvider* resource_provider,
+ TextureMailboxDeleter* texture_mailbox_deleter,
+ int highp_threshold_min,
+ bool use_skia_gpu_backend);
virtual ~GLRenderer();
@@ -85,6 +88,7 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
const LayerTreeSettings* settings,
OutputSurface* output_surface,
ResourceProvider* resource_provider,
+ TextureMailboxDeleter* texture_mailbox_deleter,
int highp_threshold_min);
bool IsBackbufferDiscarded() const { return is_backbuffer_discarded_; }
@@ -425,6 +429,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
skia::RefPtr<GrContext> gr_context_;
skia::RefPtr<SkCanvas> sk_canvas_;
+ TextureMailboxDeleter* texture_mailbox_deleter_;
+
gfx::Rect swap_buffer_rect_;
gfx::Rect scissor_rect_;
gfx::Rect viewport_;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698