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

Side by Side Diff: cc/tiles/picture_layer_tiling.h

Issue 2295343005: Improve PictureLayerTiling::CoverageIterator to handle rounding more precisely (Closed)
Patch Set: remove the 1.5 Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('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 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_
6 #define CC_TILES_PICTURE_LAYER_TILING_H_ 6 #define CC_TILES_PICTURE_LAYER_TILING_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 Tile* operator*() const { return current_tile_; } 205 Tile* operator*() const { return current_tile_; }
206 206
207 CoverageIterator& operator++(); 207 CoverageIterator& operator++();
208 operator bool() const { return tile_j_ <= bottom_; } 208 operator bool() const { return tile_j_ <= bottom_; }
209 209
210 int i() const { return tile_i_; } 210 int i() const { return tile_i_; }
211 int j() const { return tile_j_; } 211 int j() const { return tile_j_; }
212 212
213 private: 213 private:
214 const PictureLayerTiling* tiling_; 214 const PictureLayerTiling* tiling_;
215 gfx::Size dest_layer_bounds_;
215 gfx::Rect dest_rect_; 216 gfx::Rect dest_rect_;
216 float dest_to_content_scale_; 217 float dest_to_content_scale_;
217 218
218 Tile* current_tile_; 219 Tile* current_tile_;
219 gfx::Rect current_geometry_rect_; 220 gfx::Rect current_geometry_rect_;
220 int tile_i_; 221 int tile_i_;
221 int tile_j_; 222 int tile_j_;
222 int left_; 223 int left_;
223 int top_; 224 int top_;
224 int right_; 225 int right_;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool has_eventually_rect_tiles_; 355 bool has_eventually_rect_tiles_;
355 bool all_tiles_done_; 356 bool all_tiles_done_;
356 357
357 private: 358 private:
358 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling); 359 DISALLOW_COPY_AND_ASSIGN(PictureLayerTiling);
359 }; 360 };
360 361
361 } // namespace cc 362 } // namespace cc
362 363
363 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ 364 #endif // CC_TILES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698