| Index: cc/resources/tile.h
|
| diff --git a/cc/resources/tile.h b/cc/resources/tile.h
|
| index 548d9c985c4ebccd8f0d468022c9e3eb1058fce3..e7c96360fe56695629bd299b22fb692b5be51dd4 100644
|
| --- a/cc/resources/tile.h
|
| +++ b/cc/resources/tile.h
|
| @@ -11,7 +11,7 @@
|
| #include "cc/base/ref_counted_managed.h"
|
| #include "cc/resources/managed_tile_state.h"
|
| #include "cc/resources/raster_mode.h"
|
| -#include "cc/resources/tile_bundle.h"
|
| +#include "cc/resources/tile_priority.h"
|
| #include "ui/gfx/rect.h"
|
| #include "ui/gfx/size.h"
|
|
|
| @@ -40,10 +40,21 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
|
| return picture_pile_.get();
|
| }
|
|
|
| + const TilePriority& priority(WhichTree tree) const {
|
| + return priority_[tree];
|
| + }
|
| +
|
| + TilePriority combined_priority() const {
|
| + return TilePriority(priority_[ACTIVE_TREE],
|
| + priority_[PENDING_TREE]);
|
| + }
|
| +
|
| + void SetPriority(WhichTree tree, const TilePriority& priority);
|
| +
|
| void MarkRequiredForActivation();
|
|
|
| bool required_for_activation() const {
|
| - return required_for_activation_;
|
| + return priority_[PENDING_TREE].required_for_activation;
|
| }
|
|
|
| void set_can_use_lcd_text(bool can_use_lcd_text) {
|
| @@ -68,14 +79,6 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
|
| return !!(flags_ & USE_GPU_RASTERIZATION);
|
| }
|
|
|
| - bool is_visible() const {
|
| - return is_visible_;
|
| - }
|
| -
|
| - void set_is_visible(bool is_visible) {
|
| - is_visible_ = is_visible;
|
| - }
|
| -
|
| scoped_ptr<base::Value> AsValue() const;
|
|
|
| inline bool IsReadyToDraw() const {
|
| @@ -151,12 +154,11 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
|
| float contents_scale_;
|
| gfx::Rect opaque_rect_;
|
|
|
| + TilePriority priority_[NUM_TREES];
|
| ManagedTileState managed_state_;
|
| int layer_id_;
|
| int source_frame_number_;
|
| int flags_;
|
| - bool required_for_activation_;
|
| - bool is_visible_;
|
|
|
| Id id_;
|
| static Id s_next_id_;
|
|
|