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

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

Issue 385123006: cc: Use ExpandRectIgnoringBordersToTileBoundsWithBordersEmpty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Return the tile index whose non-border texels include src_position. 45 // Return the tile index whose non-border texels include src_position.
46 int TileXIndexFromSrcCoord(int src_position) const; 46 int TileXIndexFromSrcCoord(int src_position) const;
47 int TileYIndexFromSrcCoord(int src_position) const; 47 int TileYIndexFromSrcCoord(int src_position) const;
48 // Return the lowest tile index whose border texels include src_position. 48 // Return the lowest tile index whose border texels include src_position.
49 int FirstBorderTileXIndexFromSrcCoord(int src_position) const; 49 int FirstBorderTileXIndexFromSrcCoord(int src_position) const;
50 int FirstBorderTileYIndexFromSrcCoord(int src_position) const; 50 int FirstBorderTileYIndexFromSrcCoord(int src_position) const;
51 // Return the highest tile index whose border texels include src_position. 51 // Return the highest tile index whose border texels include src_position.
52 int LastBorderTileXIndexFromSrcCoord(int src_position) const; 52 int LastBorderTileXIndexFromSrcCoord(int src_position) const;
53 int LastBorderTileYIndexFromSrcCoord(int src_position) const; 53 int LastBorderTileYIndexFromSrcCoord(int src_position) const;
54 54
55 gfx::Rect ExpandRectToTileBoundsWithBorders(const gfx::Rect& rect) const; 55 gfx::Rect ExpandRectIgnoringBordersToTileBoundsWithBorders(
56 const gfx::Rect& rect) const;
56 gfx::Rect ExpandRectToTileBounds(const gfx::Rect& rect) const; 57 gfx::Rect ExpandRectToTileBounds(const gfx::Rect& rect) const;
57 58
58 gfx::Rect TileBounds(int i, int j) const; 59 gfx::Rect TileBounds(int i, int j) const;
59 gfx::Rect TileBoundsWithBorder(int i, int j) const; 60 gfx::Rect TileBoundsWithBorder(int i, int j) const;
60 int TilePositionX(int x_index) const; 61 int TilePositionX(int x_index) const;
61 int TilePositionY(int y_index) const; 62 int TilePositionY(int y_index) const;
62 int TileSizeX(int x_index) const; 63 int TileSizeX(int x_index) const;
63 int TileSizeY(int y_index) const; 64 int TileSizeY(int y_index) const;
64 65
65 // Difference between TileBound's and TileBoundWithBorder's origin(). 66 // Difference between TileBound's and TileBoundWithBorder's origin().
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int border_texels_; 199 int border_texels_;
199 200
200 // These are computed values. 201 // These are computed values.
201 int num_tiles_x_; 202 int num_tiles_x_;
202 int num_tiles_y_; 203 int num_tiles_y_;
203 }; 204 };
204 205
205 } // namespace cc 206 } // namespace cc
206 207
207 #endif // CC_BASE_TILING_DATA_H_ 208 #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