OLD | NEW |
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 Loading... |
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 |
OLD | NEW |