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

Unified Diff: cc/output/gl_renderer.h

Issue 2252163003: Update Context Client Visibility to use Scoped Pattern (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 4 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
« no previous file with comments | « blimp/client/feature/compositor/blimp_context_provider.cc ('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 b26f868459537bd8596cbbd27b37ee3350c86e36..d711822b0b3ef200ea0a825e5d5aed3eedcee503 100644
--- a/cc/output/gl_renderer.h
+++ b/cc/output/gl_renderer.h
@@ -21,6 +21,7 @@
#include "cc/quads/solid_color_draw_quad.h"
#include "cc/quads/tile_draw_quad.h"
#include "cc/quads/yuv_video_draw_quad.h"
+#include "gpu/command_buffer/client/context_support.h"
#include "ui/gfx/geometry/quad_f.h"
class SkBitmap;
@@ -269,6 +270,8 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
void ScheduleRenderPassDrawQuad(const CALayerOverlay* ca_layer_overlay,
DrawingFrame* external_frame);
+ void UpdateVisibilityForContextProvider(bool is_visible);
+
using OverlayResourceLock =
std::unique_ptr<ResourceProvider::ScopedReadLockGL>;
using OverlayResourceLockList = std::vector<OverlayResourceLock>;
@@ -544,6 +547,9 @@ class CC_EXPORT GLRenderer : public DirectRenderer {
BoundGeometry bound_geometry_;
ColorLUTCache color_lut_cache_;
+
+ std::unique_ptr<gpu::ContextSupport::ScopedVisibility>
+ context_client_visibility_;
DISALLOW_COPY_AND_ASSIGN(GLRenderer);
};
« no previous file with comments | « blimp/client/feature/compositor/blimp_context_provider.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698