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

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: Rebased 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
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..596e4ec263ccf263fd6603b50846734d9448817d 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -29,7 +29,9 @@ class FakeContentLayerClient : public ContentLayerClient {
virtual void PaintContents(SkCanvas* canvas,
const gfx::Rect& rect,
- gfx::RectF* opaque_rect) OVERRIDE;
+ gfx::RectF* opaque_rect,
+ ContentLayerClient::GraphicsContextStatus
+ graphics_context_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

Powered by Google App Engine
This is Rietveld 408576698