OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 : contains_incomplete_tile(false), has_no_damage(false) {} | 242 : contains_incomplete_tile(false), has_no_damage(false) {} |
243 | 243 |
244 LayerTreeHostImpl::FrameData::~FrameData() {} | 244 LayerTreeHostImpl::FrameData::~FrameData() {} |
245 | 245 |
246 scoped_ptr<LayerTreeHostImpl> LayerTreeHostImpl::Create( | 246 scoped_ptr<LayerTreeHostImpl> LayerTreeHostImpl::Create( |
247 const LayerTreeSettings& settings, | 247 const LayerTreeSettings& settings, |
248 LayerTreeHostImplClient* client, | 248 LayerTreeHostImplClient* client, |
249 Proxy* proxy, | 249 Proxy* proxy, |
250 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 250 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
251 SharedBitmapManager* shared_bitmap_manager, | 251 SharedBitmapManager* shared_bitmap_manager, |
252 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 252 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
253 int id) { | 253 int id) { |
254 return make_scoped_ptr(new LayerTreeHostImpl(settings, | 254 return make_scoped_ptr(new LayerTreeHostImpl(settings, |
255 client, | 255 client, |
256 proxy, | 256 proxy, |
257 rendering_stats_instrumentation, | 257 rendering_stats_instrumentation, |
258 shared_bitmap_manager, | 258 shared_bitmap_manager, |
259 gpu_memory_buffer_manager, | 259 gpu_memory_buffer_manager, |
260 id)); | 260 id)); |
261 } | 261 } |
262 | 262 |
263 LayerTreeHostImpl::LayerTreeHostImpl( | 263 LayerTreeHostImpl::LayerTreeHostImpl( |
264 const LayerTreeSettings& settings, | 264 const LayerTreeSettings& settings, |
265 LayerTreeHostImplClient* client, | 265 LayerTreeHostImplClient* client, |
266 Proxy* proxy, | 266 Proxy* proxy, |
267 RenderingStatsInstrumentation* rendering_stats_instrumentation, | 267 RenderingStatsInstrumentation* rendering_stats_instrumentation, |
268 SharedBitmapManager* shared_bitmap_manager, | 268 SharedBitmapManager* shared_bitmap_manager, |
269 GpuMemoryBufferManager* gpu_memory_buffer_manager, | 269 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
270 int id) | 270 int id) |
271 : BeginFrameSourceMixIn(), | 271 : BeginFrameSourceMixIn(), |
272 client_(client), | 272 client_(client), |
273 proxy_(proxy), | 273 proxy_(proxy), |
274 use_gpu_rasterization_(false), | 274 use_gpu_rasterization_(false), |
275 input_handler_client_(NULL), | 275 input_handler_client_(NULL), |
276 did_lock_scrolling_layer_(false), | 276 did_lock_scrolling_layer_(false), |
277 should_bubble_scrolls_(false), | 277 should_bubble_scrolls_(false), |
278 wheel_scrolling_(false), | 278 wheel_scrolling_(false), |
279 scroll_affects_scroll_handler_(false), | 279 scroll_affects_scroll_handler_(false), |
(...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3472 } | 3472 } |
3473 | 3473 |
3474 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 3474 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
3475 std::vector<PictureLayerImpl*>::iterator it = | 3475 std::vector<PictureLayerImpl*>::iterator it = |
3476 std::find(picture_layers_.begin(), picture_layers_.end(), layer); | 3476 std::find(picture_layers_.begin(), picture_layers_.end(), layer); |
3477 DCHECK(it != picture_layers_.end()); | 3477 DCHECK(it != picture_layers_.end()); |
3478 picture_layers_.erase(it); | 3478 picture_layers_.erase(it); |
3479 } | 3479 } |
3480 | 3480 |
3481 } // namespace cc | 3481 } // namespace cc |
OLD | NEW |