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

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

Issue 1051993002: 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();
135 DifferenceIterator(const TilingData* tiling_data, 136 DifferenceIterator(const TilingData* tiling_data,
136 const gfx::Rect& consider_rect, 137 const gfx::Rect& consider_rect,
137 const gfx::Rect& ignore_rect); 138 const gfx::Rect& ignore_rect);
138 DifferenceIterator& operator++(); 139 DifferenceIterator& operator++();
139 }; 140 };
140 141
141 // Iterate through all indices whose bounds + border intersect with 142 // Iterate through all indices whose bounds + border intersect with
142 // |consider| but which also do not intersect with |ignore|. The iterator 143 // |consider| but which also do not intersect with |ignore|. The iterator
143 // order is a counterclockwise spiral around the given center. 144 // order is a counterclockwise spiral around the given center.
144 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator { 145 class CC_EXPORT SpiralDifferenceIterator : public BaseDifferenceIterator {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 int border_texels_; 237 int border_texels_;
237 238
238 // These are computed values. 239 // These are computed values.
239 int num_tiles_x_; 240 int num_tiles_x_;
240 int num_tiles_y_; 241 int num_tiles_y_;
241 }; 242 };
242 243
243 } // namespace cc 244 } // namespace cc
244 245
245 #endif // CC_BASE_TILING_DATA_H_ 246 #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