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

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: nitfix 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') | 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 6e42f75bee75d49f48d65720cabd7eb8a46e4a37..7cd52b3ae4f5eb38c38a7d930327bb5c520d5492 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,6 +181,7 @@ class CC_EXPORT TileManager {
const gfx::Rect& rect,
float contents_scale,
bool use_cheapness_estimator,
+ const RasterTaskMetadata& raster_task_metadata,
PicturePileImpl* picture_pile,
RenderingStats* stats);
static void RunImageDecodeTask(skia::LazyPixelRef* pixel_ref,
« no previous file with comments | « no previous file | cc/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698