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

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

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: . 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 gfx::Rect ExpandRectToTileBoundsWithBorders(const gfx::Rect& rect) const; 55 gfx::Rect ExpandRectToTileBoundsWithBorders(const gfx::Rect& rect) const;
56 gfx::Rect ExpandRectToTileBounds(const gfx::Rect& rect) const; 56 gfx::Rect ExpandRectToTileBounds(const gfx::Rect& rect) const;
57 57
58 gfx::Rect TileBounds(int i, int j) const; 58 gfx::Rect TileBounds(int i, int j) const;
59 gfx::Rect TileBoundsWithBorder(int i, int j) const; 59 gfx::Rect TileBoundsWithBorder(int i, int j) const;
60 int TilePositionX(int x_index) const; 60 int TilePositionX(int x_index) const;
61 int TilePositionY(int y_index) const; 61 int TilePositionY(int y_index) const;
62 int TileSizeX(int x_index) const; 62 int TileSizeX(int x_index) const;
63 int TileSizeY(int y_index) const; 63 int TileSizeY(int y_index) const;
64 64
65 gfx::Rect TileBoundsAllowTilesOutsideTiling(int i, int j) const;
enne (OOO) 2014/07/11 00:12:03 Unused?
66
65 // Difference between TileBound's and TileBoundWithBorder's origin(). 67 // Difference between TileBound's and TileBoundWithBorder's origin().
66 gfx::Vector2d TextureOffset(int x_index, int y_index) const; 68 gfx::Vector2d TextureOffset(int x_index, int y_index) const;
67 69
68 class CC_EXPORT BaseIterator { 70 class CC_EXPORT BaseIterator {
69 public: 71 public:
70 operator bool() const { return index_x_ != -1 && index_y_ != -1; } 72 operator bool() const { return index_x_ != -1 && index_y_ != -1; }
71 73
72 int index_x() const { return index_x_; } 74 int index_x() const { return index_x_; }
73 int index_y() const { return index_y_; } 75 int index_y() const { return index_y_; }
74 std::pair<int, int> index() const { 76 std::pair<int, int> index() const {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int border_texels_; 200 int border_texels_;
199 201
200 // These are computed values. 202 // These are computed values.
201 int num_tiles_x_; 203 int num_tiles_x_;
202 int num_tiles_y_; 204 int num_tiles_y_;
203 }; 205 };
204 206
205 } // namespace cc 207 } // namespace cc
206 208
207 #endif // CC_BASE_TILING_DATA_H_ 209 #endif // CC_BASE_TILING_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer.cc » ('j') | cc/layers/picture_layer_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698