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

Unified Diff: cc/tile_priority.h

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dont expose to extension yet 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 | « cc/tile_manager.cc ('k') | cc/tile_priority.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tile_priority.h
diff --git a/cc/tile_priority.h b/cc/tile_priority.h
index 2b60de30d47a5141d098f07fffb7fb2ce29335d4..7e03c927a2302821c5264e57bedcc14989510098 100644
--- a/cc/tile_priority.h
+++ b/cc/tile_priority.h
@@ -10,6 +10,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "cc/picture_pile.h"
+#include "ui/gfx/quad_f.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/size.h"
@@ -35,6 +36,8 @@ enum TileResolution {
HIGH_RESOLUTION = 1,
NON_IDEAL_RESOLUTION = 2,
};
+scoped_ptr<base::Value> TileResolutionAsValue(
+ TileResolution resolution);
struct CC_EXPORT TilePriority {
TilePriority()
@@ -88,6 +91,9 @@ struct CC_EXPORT TilePriority {
std::min(active.distance_to_visible_in_pixels,
pending.distance_to_visible_in_pixels);
}
+ void set_current_screen_quad(const gfx::QuadF& q) { current_screen_quad = q; }
+
+ scoped_ptr<base::Value> AsValue() const;
static const float kMaxDistanceInContentSpace;
@@ -119,6 +125,9 @@ struct CC_EXPORT TilePriority {
TileResolution resolution;
float time_to_visible_in_seconds;
float distance_to_visible_in_pixels;
+
+private:
+ gfx::QuadF current_screen_quad;
};
enum TileMemoryLimitPolicy {
« no previous file with comments | « cc/tile_manager.cc ('k') | cc/tile_priority.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698