| 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 {
|
|
|