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

Side by Side Diff: cc/picture_layer_impl.cc

Issue 11742043: cc: Remove unused PictureLayerImpl::didUpdateBounds function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/picture_layer_impl.h ('k') | no next file » | 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 #include "cc/picture_layer_impl.h" 5 #include "cc/picture_layer_impl.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "cc/append_quads_data.h" 8 #include "cc/append_quads_data.h"
9 #include "cc/checkerboard_draw_quad.h" 9 #include "cc/checkerboard_draw_quad.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 time_delta); 163 time_delta);
164 164
165 last_screen_space_transform_ = current_screen_space_transform; 165 last_screen_space_transform_ = current_screen_space_transform;
166 last_update_time_ = current_time; 166 last_update_time_ = current_time;
167 last_bounds_ = bounds(); 167 last_bounds_ = bounds();
168 last_content_bounds_ = contentBounds(); 168 last_content_bounds_ = contentBounds();
169 last_content_scale_x_ = contentsScaleX(); 169 last_content_scale_x_ = contentsScaleX();
170 last_content_scale_y_ = contentsScaleY(); 170 last_content_scale_y_ = contentsScaleY();
171 } 171 }
172 172
173 void PictureLayerImpl::didUpdateBounds() {
174 if (is_mask_)
175 tilings_.Reset();
176 tilings_.SetLayerBounds(bounds());
177 }
178
179 scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling, 173 scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling,
180 gfx::Rect rect) { 174 gfx::Rect rect) {
181 TileManager* tile_manager = layerTreeImpl()->tile_manager(); 175 TileManager* tile_manager = layerTreeImpl()->tile_manager();
182 176
183 return make_scoped_refptr(new Tile( 177 return make_scoped_refptr(new Tile(
184 tile_manager, 178 tile_manager,
185 pile_.get(), 179 pile_.get(),
186 rect.size(), 180 rect.size(),
187 GL_RGBA, 181 GL_RGBA,
188 rect, 182 rect,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 int max_size = layerTreeImpl()->MaxTextureSize(); 254 int max_size = layerTreeImpl()->MaxTextureSize();
261 return gfx::Size( 255 return gfx::Size(
262 std::min(max_size, contentBounds().width()), 256 std::min(max_size, contentBounds().width()),
263 std::min(max_size, contentBounds().height())); 257 std::min(max_size, contentBounds().height()));
264 } 258 }
265 259
266 return layerTreeImpl()->settings().defaultTileSize; 260 return layerTreeImpl()->settings().defaultTileSize;
267 } 261 }
268 262
269 } // namespace cc 263 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698