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

Unified Diff: cc/resources/prioritized_tile.h

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var 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/picture_layer_tiling_set.cc ('k') | cc/resources/prioritized_tile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/prioritized_tile.h
diff --git a/cc/resources/prioritized_tile.h b/cc/resources/prioritized_tile.h
index b26476ab938f8cf0fb95bebb04d46bb5d0d28ad3..3ac09fc37fdcbcf261b250f3b54a6d88f5a166e0 100644
--- a/cc/resources/prioritized_tile.h
+++ b/cc/resources/prioritized_tile.h
@@ -11,6 +11,7 @@
namespace cc {
class PictureLayerTiling;
+class RasterSource;
class CC_EXPORT PrioritizedTile {
public:
@@ -20,15 +21,22 @@ class CC_EXPORT PrioritizedTile {
~PrioritizedTile();
Tile* tile() const { return tile_; }
+ RasterSource* raster_source() const { return raster_source_; }
const TilePriority& priority() const { return priority_; }
bool is_occluded() const { return is_occluded_; }
+ void AsValueInto(base::trace_event::TracedValue* value) const;
+
private:
friend class PictureLayerTiling;
- PrioritizedTile(Tile* tile, const TilePriority priority, bool is_occluded);
+ PrioritizedTile(Tile* tile,
+ RasterSource* raster_source,
+ const TilePriority priority,
+ bool is_occluded);
Tile* tile_;
+ RasterSource* raster_source_;
TilePriority priority_;
bool is_occluded_;
};
« no previous file with comments | « cc/resources/picture_layer_tiling_set.cc ('k') | cc/resources/prioritized_tile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698