summaryrefslogtreecommitdiffstats
path: root/cc/resources/bitmap_content_layer_updater.h
diff options
context:
space:
mode:
authoregraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 05:32:49 +0000
committeregraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 05:32:49 +0000
commitd8411661bd40f4ff61ffe4508e2f75991f09465c (patch)
tree9b564f26bd2417675d3f77dd35723be0a496b70a /cc/resources/bitmap_content_layer_updater.h
parentf011d10ecb2bda677016685f16fa357a3f79e9b3 (diff)
downloadchromium_src-d8411661bd40f4ff61ffe4508e2f75991f09465c.zip
chromium_src-d8411661bd40f4ff61ffe4508e2f75991f09465c.tar.gz
chromium_src-d8411661bd40f4ff61ffe4508e2f75991f09465c.tar.bz2
cc: Pass RenderingStatsInstrumentation to ContentLayerUpdater
This change adds an accessor for RenderingStatsInstrumentation to Layer and passes RenderingStatsInstrumentation to ContentLayerUpdater and all it's sub-classes on construction, currently unused. BUG=181319 Review URL: https://chromiumcodereview.appspot.com/13266002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/bitmap_content_layer_updater.h')
-rw-r--r--cc/resources/bitmap_content_layer_updater.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cc/resources/bitmap_content_layer_updater.h b/cc/resources/bitmap_content_layer_updater.h
index 0597f82..5d45608 100644
--- a/cc/resources/bitmap_content_layer_updater.h
+++ b/cc/resources/bitmap_content_layer_updater.h
@@ -13,6 +13,7 @@ class SkCanvas;
namespace cc {
class LayerPainter;
+class RenderingStatsInstrumenation;
// This class rasterizes the content_rect into a skia bitmap canvas. It then
// updates textures by copying from the canvas into the texture, using
@@ -38,7 +39,8 @@ class CC_EXPORT BitmapContentLayerUpdater : public ContentLayerUpdater {
};
static scoped_refptr<BitmapContentLayerUpdater> Create(
- scoped_ptr<LayerPainter> painter);
+ scoped_ptr<LayerPainter> painter,
+ RenderingStatsInstrumentation* stats_instrumenation);
virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
PrioritizedResourceManager* manager) OVERRIDE;
@@ -57,7 +59,9 @@ class CC_EXPORT BitmapContentLayerUpdater : public ContentLayerUpdater {
virtual void SetOpaque(bool opaque) OVERRIDE;
protected:
- explicit BitmapContentLayerUpdater(scoped_ptr<LayerPainter> painter);
+ BitmapContentLayerUpdater(
+ scoped_ptr<LayerPainter> painter,
+ RenderingStatsInstrumentation* stats_instrumenation);
virtual ~BitmapContentLayerUpdater();
scoped_ptr<SkCanvas> canvas_;