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

Side by Side Diff: cc/picture_layer_tiling.h

Issue 12383060: cc: Remove texture scaling and clear edge texels of a layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and expand base picture Created 7 years, 9 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/picture_layer.cc ('k') | cc/picture_layer_tiling.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_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_PICTURE_LAYER_TILING_H_
6 #define CC_PICTURE_LAYER_TILING_H_ 6 #define CC_PICTURE_LAYER_TILING_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 Tile* operator->() const { return current_tile_; } 103 Tile* operator->() const { return current_tile_; }
104 Tile* operator*() const { return current_tile_; } 104 Tile* operator*() const { return current_tile_; }
105 105
106 Iterator& operator++(); 106 Iterator& operator++();
107 operator bool() const { return tile_j_ <= bottom_; } 107 operator bool() const { return tile_j_ <= bottom_; }
108 108
109 private: 109 private:
110 const PictureLayerTiling* tiling_; 110 const PictureLayerTiling* tiling_;
111 gfx::Rect dest_rect_; 111 gfx::Rect dest_rect_;
112 float dest_to_content_scale_x_; 112 float dest_to_content_scale_;
113 float dest_to_content_scale_y_;
114 113
115 Tile* current_tile_; 114 Tile* current_tile_;
116 gfx::Rect current_geometry_rect_; 115 gfx::Rect current_geometry_rect_;
117 int tile_i_; 116 int tile_i_;
118 int tile_j_; 117 int tile_j_;
119 int left_; 118 int left_;
120 int top_; 119 int top_;
121 int right_; 120 int right_;
122 int bottom_; 121 int bottom_;
123 122
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 TileResolution resolution_; 169 TileResolution resolution_;
171 int last_source_frame_number_; 170 int last_source_frame_number_;
172 double last_impl_frame_time_; 171 double last_impl_frame_time_;
173 172
174 friend class Iterator; 173 friend class Iterator;
175 }; 174 };
176 175
177 } // namespace cc 176 } // namespace cc
178 177
179 #endif // CC_PICTURE_LAYER_TILING_H_ 178 #endif // CC_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/picture_layer.cc ('k') | cc/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698