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

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

Issue 62283012: cc: Added tile bundles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: perftest fix Created 7 years, 1 month 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
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 "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/base/scoped_ptr_vector.h" 9 #include "cc/base/scoped_ptr_vector.h"
10 #include "cc/resources/picture_layer_tiling.h" 10 #include "cc/resources/picture_layer_tiling.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // regardless of the relative contents scale of the tiling. 88 // regardless of the relative contents scale of the tiling.
89 gfx::Rect geometry_rect() const; 89 gfx::Rect geometry_rect() const;
90 // Texture rect (in texels) for geometry_rect 90 // Texture rect (in texels) for geometry_rect
91 gfx::RectF texture_rect() const; 91 gfx::RectF texture_rect() const;
92 // Texture size in texels 92 // Texture size in texels
93 gfx::Size texture_size() const; 93 gfx::Size texture_size() const;
94 94
95 Tile* operator->() const; 95 Tile* operator->() const;
96 Tile* operator*() const; 96 Tile* operator*() const;
97 97
98 TilePriority priority();
99
98 CoverageIterator& operator++(); 100 CoverageIterator& operator++();
99 operator bool() const; 101 operator bool() const;
100 102
101 PictureLayerTiling* CurrentTiling(); 103 PictureLayerTiling* CurrentTiling();
102 104
103 private: 105 private:
104 int NextTiling() const; 106 int NextTiling() const;
105 107
106 const PictureLayerTilingSet* set_; 108 const PictureLayerTilingSet* set_;
107 float contents_scale_; 109 float contents_scale_;
(...skipping 15 matching lines...) Expand all
123 gfx::Size layer_bounds_; 125 gfx::Size layer_bounds_;
124 ScopedPtrVector<PictureLayerTiling> tilings_; 126 ScopedPtrVector<PictureLayerTiling> tilings_;
125 127
126 friend class Iterator; 128 friend class Iterator;
127 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 129 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
128 }; 130 };
129 131
130 } // namespace cc 132 } // namespace cc
131 133
132 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 134 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698