| 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.h" | 5 #include "cc/trees/layer_tree_host.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <stack> | 8 #include <stack> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 : best_texture_format(0), | 47 : best_texture_format(0), |
| 48 using_partial_swap(false), | 48 using_partial_swap(false), |
| 49 using_accelerated_painting(false), | 49 using_accelerated_painting(false), |
| 50 using_set_visibility(false), | 50 using_set_visibility(false), |
| 51 using_swap_complete_callback(false), | 51 using_swap_complete_callback(false), |
| 52 using_gpu_memory_manager(false), | 52 using_gpu_memory_manager(false), |
| 53 using_egl_image(false), | 53 using_egl_image(false), |
| 54 allow_partial_texture_updates(false), | 54 allow_partial_texture_updates(false), |
| 55 using_offscreen_context3d(false), | 55 using_offscreen_context3d(false), |
| 56 max_texture_size(0), | 56 max_texture_size(0), |
| 57 avoid_pow2_textures(false) {} | 57 avoid_pow2_textures(false), |
| 58 using_map_image(false) {} |
| 58 | 59 |
| 59 RendererCapabilities::~RendererCapabilities() {} | 60 RendererCapabilities::~RendererCapabilities() {} |
| 60 | 61 |
| 61 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { | 62 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { |
| 62 return s_num_layer_tree_instances > 0; | 63 return s_num_layer_tree_instances > 0; |
| 63 } | 64 } |
| 64 | 65 |
| 65 scoped_ptr<LayerTreeHost> LayerTreeHost::Create( | 66 scoped_ptr<LayerTreeHost> LayerTreeHost::Create( |
| 66 LayerTreeHostClient* client, | 67 LayerTreeHostClient* client, |
| 67 const LayerTreeSettings& settings, | 68 const LayerTreeSettings& settings, |
| (...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 bool start_ready_animations = true; | 1018 bool start_ready_animations = true; |
| 1018 (*iter).second->UpdateState(start_ready_animations, NULL); | 1019 (*iter).second->UpdateState(start_ready_animations, NULL); |
| 1019 } | 1020 } |
| 1020 } | 1021 } |
| 1021 | 1022 |
| 1022 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { | 1023 skia::RefPtr<SkPicture> LayerTreeHost::CapturePicture() { |
| 1023 return proxy_->CapturePicture(); | 1024 return proxy_->CapturePicture(); |
| 1024 } | 1025 } |
| 1025 | 1026 |
| 1026 } // namespace cc | 1027 } // namespace cc |
| OLD | NEW |