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

Side by Side Diff: cc/base/tiling_data.h

Issue 1108773003: Revert of cc: Remove tile sharing from tilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/base/tiling_data.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_BASE_TILING_DATA_H_ 5 #ifndef CC_BASE_TILING_DATA_H_
6 #define CC_BASE_TILING_DATA_H_ 6 #define CC_BASE_TILING_DATA_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 int ignore_left_; 125 int ignore_left_;
126 int ignore_top_; 126 int ignore_top_;
127 int ignore_right_; 127 int ignore_right_;
128 int ignore_bottom_; 128 int ignore_bottom_;
129 }; 129 };
130 130
131 // Iterate through all indices whose bounds (not including borders) intersect 131 // Iterate through all indices whose bounds (not including borders) intersect
132 // with |consider| but which also do not intersect with |ignore|. 132 // with |consider| but which also do not intersect with |ignore|.
133 class CC_EXPORT DifferenceIterator : public BaseDifferenceIterator { 133 class CC_EXPORT DifferenceIterator : public BaseDifferenceIterator {
134 public: 134 public:
135 DifferenceIterator();
136 DifferenceIterator(const TilingData* tiling_data, 135 DifferenceIterator(const TilingData* tiling_data,
137 const gfx::Rect& consider_rect, 136 const gfx::Rect& consider_rect,
138 const gfx::Rect& ignore_rect); 137 const gfx::Rect& ignore_rect);
139 DifferenceIterator& operator++(); 138 DifferenceIterator& operator++();
140 }; 139 };
141 140
142 // Iterate through all indices whose bounds + border intersect with 141 // Iterate through all indices whose bounds + border intersect with
143 // |consider| but which also do not intersect with |ignore|. The iterator 142 // |consider| but which also do not intersect with |ignore|. The iterator
144 // order is a counterclockwise spiral around the given center. 143 // order is a counterclockwise spiral around the given center.
145 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { 144 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 int border_texels_; 236 int border_texels_;
238 237
239 // These are computed values. 238 // These are computed values.
240 int num_tiles_x_; 239 int num_tiles_x_;
241 int num_tiles_y_; 240 int num_tiles_y_;
242 }; 241 };
243 242
244 } // namespace cc 243 } // namespace cc
245 244
246 #endif // CC_BASE_TILING_DATA_H_ 245 #endif // CC_BASE_TILING_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | cc/base/tiling_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698