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

Unified Diff: cc/tile_manager.h

Issue 11418250: [cc] Track the rendering & painting cost of impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/picture_pile_impl.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_manager.h
diff --git a/cc/tile_manager.h b/cc/tile_manager.h
index fd13d86a3eb7d4be84a8481241b75d3d6f984f6d..2d57f7d04312d5607630b68a75f7b5845c921e5b 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -20,6 +20,7 @@ namespace cc {
class Tile;
class TileVersion;
+struct RenderingStats;
class ResourceProvider;
class CC_EXPORT TileManagerClient {
@@ -75,6 +76,8 @@ class CC_EXPORT TileManager {
void ManageTiles();
+ void renderingStats(RenderingStats* stats);
+
protected:
// Methods called by Tile
friend class Tile;
@@ -91,7 +94,8 @@ class CC_EXPORT TileManager {
void OnRasterTaskCompleted(
scoped_refptr<Tile>,
ResourceProvider::ResourceId,
- scoped_refptr<PicturePileImpl>);
+ scoped_refptr<PicturePileImpl>,
+ RenderingStats*);
void DidFinishTileInitialization(Tile*, ResourceProvider::ResourceId);
TileManagerClient* client_;
@@ -105,6 +109,8 @@ class CC_EXPORT TileManager {
typedef std::vector<Tile*> TileVector;
TileVector tiles_;
TileVector tiles_that_need_to_be_rasterized_;
+
+ RenderingStats rendering_stats_;
};
} // namespace cc
« no previous file with comments | « cc/picture_pile_impl.cc ('k') | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698