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

Unified Diff: cc/layers/content_layer_client.h

Issue 253013003: Enable disabling WebCore::GraphicsContext in telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 6 years, 8 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/layers/content_layer.cc ('k') | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer_client.h
diff --git a/cc/layers/content_layer_client.h b/cc/layers/content_layer_client.h
index 6a77dab532e29c9b70f6075e2bc3068edc247380..8271cd5e27f1711d2e2e7ba8ee38c2b39d82c7ea 100644
--- a/cc/layers/content_layer_client.h
+++ b/cc/layers/content_layer_client.h
@@ -18,9 +18,15 @@ namespace cc {
class CC_EXPORT ContentLayerClient {
public:
+ enum GraphicsContextStatus {
+ GRAPHICS_CONTEXT_DISABLED,
+ GRAPHICS_CONTEXT_ENABLED
+ };
+
virtual void PaintContents(SkCanvas* canvas,
const gfx::Rect& clip,
- gfx::RectF* opaque) = 0;
+ gfx::RectF* opaque,
+ GraphicsContextStatus gc_status) = 0;
// Called by the content layer during the update phase.
// If the client paints LCD text, it may want to invalidate the layer.
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698