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

Side by Side Diff: cc/resources/content_layer_updater.h

Issue 13245007: cc: Remove RenderingStats passed to ContentLayerUpdater during Layer::Update() (Closed) Base URL: http://git.chromium.org/chromium/src.git@three
Patch Set: Rebase to 208926 Created 7 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/layer_updater.h" 9 #include "cc/resources/layer_updater.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 15 matching lines...) Expand all
26 protected: 26 protected:
27 ContentLayerUpdater(scoped_ptr<LayerPainter> painter, 27 ContentLayerUpdater(scoped_ptr<LayerPainter> painter,
28 RenderingStatsInstrumentation* stats_instrumentation, 28 RenderingStatsInstrumentation* stats_instrumentation,
29 int layer_id); 29 int layer_id);
30 virtual ~ContentLayerUpdater(); 30 virtual ~ContentLayerUpdater();
31 31
32 void PaintContents(SkCanvas* canvas, 32 void PaintContents(SkCanvas* canvas,
33 gfx::Rect content_rect, 33 gfx::Rect content_rect,
34 float contents_width_scale, 34 float contents_width_scale,
35 float contents_height_scale, 35 float contents_height_scale,
36 gfx::Rect* resulting_opaque_rect, 36 gfx::Rect* resulting_opaque_rect);
37 RenderingStats* stats);
38 gfx::Rect content_rect() const { return content_rect_; } 37 gfx::Rect content_rect() const { return content_rect_; }
39 38
40 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 39 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
41 int layer_id_; 40 int layer_id_;
42 41
43 private: 42 private:
44 gfx::Rect content_rect_; 43 gfx::Rect content_rect_;
45 scoped_ptr<LayerPainter> painter_; 44 scoped_ptr<LayerPainter> painter_;
46 45
47 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater); 46 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater);
48 }; 47 };
49 48
50 } // namespace cc 49 } // namespace cc
51 50
52 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 51 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/caching_bitmap_content_layer_updater.cc ('k') | cc/resources/content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698