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

Unified Diff: cc/tile_manager.h

Issue 12258004: [cc] Pass metadata about a tile to the raster system for benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/tile_manager.cc » ('j') | cc/tile_manager.cc » ('J')
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 6e42f75bee75d49f48d65720cabd7eb8a46e4a37..d7c1e48e78349fd8370c67b2ca5d1b36ebae4938 100644
--- a/cc/tile_manager.h
+++ b/cc/tile_manager.h
@@ -63,6 +63,12 @@ enum TileRasterState {
scoped_ptr<base::Value> TileRasterStateAsValue(
TileRasterState bin);
+// Metadata that is passed to raster tasks for diagnostic purposes.
+struct RasterTaskMetadata {
+ bool is_tile_in_pending_tree_now_bin;
+ TileResolution tile_resolution;
+};
+
// This is state that is specific to a tile that is
// managed by the TileManager.
class CC_EXPORT ManagedTileState {
@@ -175,7 +181,8 @@ class CC_EXPORT TileManager {
const gfx::Rect& rect,
float contents_scale,
bool use_cheapness_estimator,
- PicturePileImpl* picture_pile,
+ const RasterTaskMetadata& metadata,
+ PicturePileImpl* picture_pinle,
reveman 2013/02/13 10:24:39 typo: should be picture_pile not picture_pinle
RenderingStats* stats);
static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref,
RenderingStats* stats);
« no previous file with comments | « no previous file | cc/tile_manager.cc » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698