diff options
author | schenney@chromium.org <schenney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 21:03:03 +0000 |
---|---|---|
committer | schenney@chromium.org <schenney@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-02 21:03:03 +0000 |
commit | 276172b8f1e00033c253301fa2bdd76cfc980800 (patch) | |
tree | ee9a60e4fb1540e00150e247656a216fc0c28a38 /cc/test/fake_content_layer_client.h | |
parent | ced067e6da6e3092a00546ed820d9657a1707d91 (diff) | |
download | chromium_src-276172b8f1e00033c253301fa2bdd76cfc980800.zip chromium_src-276172b8f1e00033c253301fa2bdd76cfc980800.tar.gz chromium_src-276172b8f1e00033c253301fa2bdd76cfc980800.tar.bz2 |
Enable disabling WebCore::GraphicsContext in telemetry.
Plumb a flag through from telemetry tests to the layer
painting code that disables the WebCore::GraphicsContext.
This allows us to isolate the various systems that paint
web content in Chromium.
R=nduca@chromium.org,skyostil@chromium.org
BUG=350684
Review URL: https://codereview.chromium.org/253013003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267913 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_content_layer_client.h')
-rw-r--r-- | cc/test/fake_content_layer_client.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h index 1a5221f..cc8ddb6 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 |