diff options
author | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 05:32:49 +0000 |
---|---|---|
committer | egraether@chromium.org <egraether@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 05:32:49 +0000 |
commit | d8411661bd40f4ff61ffe4508e2f75991f09465c (patch) | |
tree | 9b564f26bd2417675d3f77dd35723be0a496b70a /cc/resources/skpicture_content_layer_updater.cc | |
parent | f011d10ecb2bda677016685f16fa357a3f79e9b3 (diff) | |
download | chromium_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/skpicture_content_layer_updater.cc')
-rw-r--r-- | cc/resources/skpicture_content_layer_updater.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cc/resources/skpicture_content_layer_updater.cc b/cc/resources/skpicture_content_layer_updater.cc index 6ce3df8..4276a1e 100644 --- a/cc/resources/skpicture_content_layer_updater.cc +++ b/cc/resources/skpicture_content_layer_updater.cc @@ -29,14 +29,19 @@ void SkPictureContentLayerUpdater::Resource::Update(ResourceUpdateQueue* queue, } SkPictureContentLayerUpdater::SkPictureContentLayerUpdater( - scoped_ptr<LayerPainter> painter) - : ContentLayerUpdater(painter.Pass()), layer_is_opaque_(false) {} + scoped_ptr<LayerPainter> painter, + RenderingStatsInstrumentation* stats_instrumentation) + : ContentLayerUpdater(painter.Pass(), stats_instrumentation), + layer_is_opaque_(false) {} SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {} scoped_refptr<SkPictureContentLayerUpdater> -SkPictureContentLayerUpdater::Create(scoped_ptr<LayerPainter> painter) { - return make_scoped_refptr(new SkPictureContentLayerUpdater(painter.Pass())); +SkPictureContentLayerUpdater::Create( + scoped_ptr<LayerPainter> painter, + RenderingStatsInstrumentation* stats_instrumentation) { + return make_scoped_refptr( + new SkPictureContentLayerUpdater(painter.Pass(), stats_instrumentation)); } scoped_ptr<LayerUpdater::Resource> SkPictureContentLayerUpdater::CreateResource( |