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

Unified Diff: cc/layers/content_layer.cc

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 | « no previous file | cc/layers/content_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer.cc
diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
index 7e0bee851ec9731bd7328e5b39ac09320e0a7a7b..14a5864aeb461d8aca202becf28b8d6d193f87a8 100644
--- a/cc/layers/content_layer.cc
+++ b/cc/layers/content_layer.cc
@@ -28,7 +28,10 @@ void ContentLayerPainter::Paint(SkCanvas* canvas,
const gfx::Rect& content_rect,
gfx::RectF* opaque) {
base::TimeTicks paint_start = base::TimeTicks::HighResNow();
- client_->PaintContents(canvas, content_rect, opaque);
+ client_->PaintContents(canvas,
+ content_rect,
+ opaque,
+ ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
base::TimeTicks paint_end = base::TimeTicks::HighResNow();
// The start and end times might be the same if the paint was very fast or if
// our timer granularity is poor. Treat this as a very short time duration
@@ -163,7 +166,10 @@ skia::RefPtr<SkPicture> ContentLayer::GetPicture() const {
SkPictureRecorder recorder;
SkCanvas* canvas = recorder.beginRecording(width, height, NULL, 0);
- client_->PaintContents(canvas, gfx::Rect(width, height), &opaque);
+ client_->PaintContents(canvas,
+ gfx::Rect(width, height),
+ &opaque,
+ ContentLayerClient::GRAPHICS_CONTEXT_ENABLED);
skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
return picture;
}
« no previous file with comments | « no previous file | cc/layers/content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698