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

Unified Diff: cc/resources/tile.h

Issue 98113005: Revert "cc: Added tile bundles" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/resources/prioritized_tile_set_unittest.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « cc/resources/prioritized_tile_set_unittest.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698