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

Unified Diff: cc/resources/tile.h

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 7 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/resources/raster_tile_priority_queue_required.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 2d24c4d520904f5d875eb76cc2195db2c0a053dd..4d41ebff7844d0be6406f50daaa2b72555c5e825 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -8,13 +8,13 @@
#include "base/memory/ref_counted.h"
#include "cc/resources/raster_source.h"
#include "cc/resources/tile_draw_info.h"
-#include "cc/resources/tile_priority.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
namespace cc {
class TileManager;
+struct TilePriority;
class CC_EXPORT Tile {
public:
@@ -35,14 +35,6 @@ class CC_EXPORT Tile {
const RasterSource* raster_source() const { return raster_source_.get(); }
- const TilePriority& priority() const { return priority_; }
-
- void set_priority(const TilePriority& priority) { priority_ = priority; }
-
- // TODO(vmpstr): Move this to the iterators.
- void set_is_occluded(bool is_occluded) { is_occluded_ = is_occluded; }
- bool is_occluded() const { return is_occluded_; }
-
// TODO(vmpstr): Move this to the iterators.
bool required_for_activation() const { return required_for_activation_; }
void set_required_for_activation(bool is_required) {
@@ -121,9 +113,7 @@ class CC_EXPORT Tile {
gfx::Size desired_texture_size_;
gfx::Rect content_rect_;
float contents_scale_;
- bool is_occluded_;
- TilePriority priority_;
TileDrawInfo draw_info_;
int layer_id_;
« no previous file with comments | « cc/resources/raster_tile_priority_queue_required.cc ('k') | cc/resources/tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698