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

Side by Side Diff: cc/picture_layer_tiling_set.cc

Issue 11348384: cc: Use asynchronous set pixels API for impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ManagedTileState::resource_id. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/test/fake_tile_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/picture_layer_tiling_set.h" 5 #include "cc/picture_layer_tiling_set.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 PictureLayerTilingSet::PictureLayerTilingSet( 9 PictureLayerTilingSet::PictureLayerTilingSet(
10 PictureLayerTilingClient * client) 10 PictureLayerTilingClient * client)
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool first_time = current_tiling_ < 0; 98 bool first_time = current_tiling_ < 0;
99 99
100 if (!*this && !first_time) 100 if (!*this && !first_time)
101 return *this; 101 return *this;
102 102
103 if (tiling_iter_) 103 if (tiling_iter_)
104 ++tiling_iter_; 104 ++tiling_iter_;
105 105
106 // Loop until we find a valid place to stop. 106 // Loop until we find a valid place to stop.
107 while (true) { 107 while (true) {
108 while (tiling_iter_ && !tiling_iter_->resource_id()) { 108 while (tiling_iter_ && !tiling_iter_->GetResourceId()) {
109 missing_region_.Union(tiling_iter_.geometry_rect()); 109 missing_region_.Union(tiling_iter_.geometry_rect());
110 ++tiling_iter_; 110 ++tiling_iter_;
111 } 111 }
112 if (tiling_iter_) 112 if (tiling_iter_)
113 return *this; 113 return *this;
114 114
115 // If the set of current rects for this tiling is done, go to the next 115 // If the set of current rects for this tiling is done, go to the next
116 // tiling and set up to iterate through all of the remaining holes. 116 // tiling and set up to iterate through all of the remaining holes.
117 // This will also happen the first time through the loop. 117 // This will also happen the first time through the loop.
118 if (!region_iter_.has_rect()) { 118 if (!region_iter_.has_rect()) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const gfx::Transform& current_screen_transform, 165 const gfx::Transform& current_screen_transform,
166 double time_delta) { 166 double time_delta) {
167 for (size_t i = 0; i < tilings_.size(); ++i) { 167 for (size_t i = 0; i < tilings_.size(); ++i) {
168 tilings_[i]->UpdateTilePriorities( 168 tilings_[i]->UpdateTilePriorities(
169 device_viewport, layer_content_scale_x, layer_content_scale_y, 169 device_viewport, layer_content_scale_x, layer_content_scale_y,
170 last_screen_transform, current_screen_transform, time_delta); 170 last_screen_transform, current_screen_transform, time_delta);
171 } 171 }
172 } 172 }
173 173
174 } // namespace cc 174 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | cc/test/fake_tile_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698