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

Unified Diff: cc/resources/tile.cc

Issue 374653003: Track occlusion per tree on Tile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback Created 6 years, 5 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/tile.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile.cc
diff --git a/cc/resources/tile.cc b/cc/resources/tile.cc
index 781d00899e13935ee458a7c6cef28c082d17c273..48a10db70ffc205520fc8a26b41060420bab30b8 100644
--- a/cc/resources/tile.cc
+++ b/cc/resources/tile.cc
@@ -30,12 +30,13 @@ Tile::Tile(TileManager* tile_manager,
content_rect_(content_rect),
contents_scale_(contents_scale),
opaque_rect_(opaque_rect),
- is_occluded_(false),
layer_id_(layer_id),
source_frame_number_(source_frame_number),
flags_(flags),
id_(s_next_id_++) {
set_picture_pile(picture_pile);
+ for (int i = 0; i < NUM_TREES; i++)
danakj 2014/07/07 20:26:56 signed vs unsigned... maybe this works, but you mi
+ is_occluded_[i] = false;
}
Tile::~Tile() {
« no previous file with comments | « cc/resources/tile.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698