From 276172b8f1e00033c253301fa2bdd76cfc980800 Mon Sep 17 00:00:00 2001 From: "schenney@chromium.org" Date: Fri, 2 May 2014 21:03:03 +0000 Subject: 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 --- cc/test/fake_content_layer_client.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '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 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 > RectPaintVector; typedef std::vector 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 -- cgit v1.1