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

Side by Side Diff: cc/picture_layer_impl.cc

Issue 11421210: cc: Apply contents scales to impl-side painting rasterization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years 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.h ('k') | cc/picture_pile_impl.h » ('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 #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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 time_delta); 153 time_delta);
154 154
155 last_screen_space_transform_ = current_screen_space_transform; 155 last_screen_space_transform_ = current_screen_space_transform;
156 last_update_time_ = current_time; 156 last_update_time_ = current_time;
157 last_bounds_ = bounds(); 157 last_bounds_ = bounds();
158 last_content_bounds_ = contentBounds(); 158 last_content_bounds_ = contentBounds();
159 last_content_scale_x_ = contentsScaleX(); 159 last_content_scale_x_ = contentsScaleX();
160 last_content_scale_y_ = contentsScaleY(); 160 last_content_scale_y_ = contentsScaleY();
161 } 161 }
162 162
163 scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling*, 163 scoped_refptr<Tile> PictureLayerImpl::CreateTile(PictureLayerTiling* tiling,
164 gfx::Rect rect) { 164 gfx::Rect rect) {
165 TileManager* tile_manager = layerTreeHostImpl()->tileManager(); 165 TileManager* tile_manager = layerTreeHostImpl()->tileManager();
166 166
167 return make_scoped_refptr(new Tile( 167 return make_scoped_refptr(new Tile(
168 tile_manager, 168 tile_manager,
169 pile_.get(), 169 pile_.get(),
170 rect.size(), 170 rect.size(),
171 GL_RGBA, 171 GL_RGBA,
172 rect)); 172 rect,
173 tiling->contents_scale()));
173 } 174 }
174 175
175 void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) { 176 void PictureLayerImpl::SyncFromActiveLayer(const PictureLayerImpl* other) {
176 tilings_.CloneFrom(other->tilings_); 177 tilings_.CloneFrom(other->tilings_);
177 } 178 }
178 179
179 } // namespace cc 180 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer.h ('k') | cc/picture_pile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698