| 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 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 resource_provider_.get()); | 2031 resource_provider_.get()); |
| 2032 return; | 2032 return; |
| 2033 } | 2033 } |
| 2034 | 2034 |
| 2035 if (use_gpu_rasterization_) { | 2035 if (use_gpu_rasterization_) { |
| 2036 *resource_pool = | 2036 *resource_pool = |
| 2037 ResourcePool::Create(resource_provider_.get(), GL_TEXTURE_2D); | 2037 ResourcePool::Create(resource_provider_.get(), GL_TEXTURE_2D); |
| 2038 | 2038 |
| 2039 *tile_task_worker_pool = GpuTileTaskWorkerPool::Create( | 2039 *tile_task_worker_pool = GpuTileTaskWorkerPool::Create( |
| 2040 task_runner, TileTaskWorkerPool::GetTaskGraphRunner(), | 2040 task_runner, TileTaskWorkerPool::GetTaskGraphRunner(), |
| 2041 resource_provider_.get()); | 2041 static_cast<GpuRasterizer*>(rasterizer_.get())); |
| 2042 return; | 2042 return; |
| 2043 } | 2043 } |
| 2044 | 2044 |
| 2045 if (GetRendererCapabilities().using_image) { | 2045 if (GetRendererCapabilities().using_image) { |
| 2046 unsigned image_target = settings_.use_image_texture_target; | 2046 unsigned image_target = settings_.use_image_texture_target; |
| 2047 DCHECK_IMPLIES( | 2047 DCHECK_IMPLIES( |
| 2048 image_target == GL_TEXTURE_RECTANGLE_ARB, | 2048 image_target == GL_TEXTURE_RECTANGLE_ARB, |
| 2049 context_provider->ContextCapabilities().gpu.texture_rectangle); | 2049 context_provider->ContextCapabilities().gpu.texture_rectangle); |
| 2050 DCHECK_IMPLIES( | 2050 DCHECK_IMPLIES( |
| 2051 image_target == GL_TEXTURE_EXTERNAL_OES, | 2051 image_target == GL_TEXTURE_EXTERNAL_OES, |
| (...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3505 (*it)->OnSetNeedsRedrawOnImpl(); | 3505 (*it)->OnSetNeedsRedrawOnImpl(); |
| 3506 } | 3506 } |
| 3507 | 3507 |
| 3508 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { | 3508 void LayerTreeHostImpl::NotifySwapPromiseMonitorsOfForwardingToMainThread() { |
| 3509 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); | 3509 std::set<SwapPromiseMonitor*>::iterator it = swap_promise_monitor_.begin(); |
| 3510 for (; it != swap_promise_monitor_.end(); it++) | 3510 for (; it != swap_promise_monitor_.end(); it++) |
| 3511 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); | 3511 (*it)->OnForwardScrollUpdateToMainThreadOnImpl(); |
| 3512 } | 3512 } |
| 3513 | 3513 |
| 3514 } // namespace cc | 3514 } // namespace cc |
| OLD | NEW |