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

Side by Side Diff: cc/resources/picture_layer_tiling_set.h

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.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_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 float contents_scale, 119 float contents_scale,
120 const gfx::Rect& content_rect, 120 const gfx::Rect& content_rect,
121 float ideal_contents_scale); 121 float ideal_contents_scale);
122 ~CoverageIterator(); 122 ~CoverageIterator();
123 123
124 // Visible rect (no borders), always in the space of rect, 124 // Visible rect (no borders), always in the space of rect,
125 // regardless of the relative contents scale of the tiling. 125 // regardless of the relative contents scale of the tiling.
126 gfx::Rect geometry_rect() const; 126 gfx::Rect geometry_rect() const;
127 // Texture rect (in texels) for geometry_rect 127 // Texture rect (in texels) for geometry_rect
128 gfx::RectF texture_rect() const; 128 gfx::RectF texture_rect() const;
129 // Texture size in texels
130 gfx::Size texture_size() const;
131 129
132 Tile* operator->() const; 130 Tile* operator->() const;
133 Tile* operator*() const; 131 Tile* operator*() const;
134 132
135 CoverageIterator& operator++(); 133 CoverageIterator& operator++();
136 operator bool() const; 134 operator bool() const;
137 135
138 TileResolution resolution() const; 136 TileResolution resolution() const;
139 PictureLayerTiling* CurrentTiling() const; 137 PictureLayerTiling* CurrentTiling() const;
140 138
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 const int skewport_extrapolation_limit_in_content_pixels_; 173 const int skewport_extrapolation_limit_in_content_pixels_;
176 PictureLayerTilingClient* client_; 174 PictureLayerTilingClient* client_;
177 175
178 friend class Iterator; 176 friend class Iterator;
179 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 177 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
180 }; 178 };
181 179
182 } // namespace cc 180 } // namespace cc
183 181
184 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 182 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698