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

Unified Diff: cc/test/fake_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/resources/picture_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.h
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h
index 1a5221f0245139301431a6b94335fcb7bf2040f8..cc8ddb6f8445862a74dc046e2eaac818e9e839fa 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -27,9 +27,11 @@ class FakeContentLayerClient : public ContentLayerClient {
FakeContentLayerClient();
virtual ~FakeContentLayerClient();
- virtual void PaintContents(SkCanvas* canvas,
- const gfx::Rect& rect,
- gfx::RectF* opaque_rect) OVERRIDE;
+ virtual void PaintContents(
+ SkCanvas* canvas,
+ const gfx::Rect& rect,
+ gfx::RectF* opaque_rect,
+ ContentLayerClient::GraphicsContextStatus gc_status) OVERRIDE;
virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
virtual bool FillsBoundsCompletely() const OVERRIDE;
@@ -51,6 +53,10 @@ class FakeContentLayerClient : public ContentLayerClient {
SkCanvas* last_canvas() const { return last_canvas_; }
+ ContentLayerClient::GraphicsContextStatus last_context_status() const {
+ return last_context_status_;
+ }
+
private:
typedef std::vector<std::pair<gfx::RectF, SkPaint> > RectPaintVector;
typedef std::vector<BitmapData> BitmapVector;
@@ -59,6 +65,7 @@ class FakeContentLayerClient : public ContentLayerClient {
RectPaintVector draw_rects_;
BitmapVector draw_bitmaps_;
SkCanvas* last_canvas_;
+ ContentLayerClient::GraphicsContextStatus last_context_status_;
};
} // namespace cc
« no previous file with comments | « cc/resources/picture_unittest.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698