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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 RendererCapabilities::RendererCapabilities() | 49 RendererCapabilities::RendererCapabilities() |
50 : best_texture_format(0), | 50 : best_texture_format(0), |
51 using_partial_swap(false), | 51 using_partial_swap(false), |
52 using_set_visibility(false), | 52 using_set_visibility(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 using_map_image(false), |
59 using_shared_memory_resources(false) {} | 59 using_shared_memory_resources(false), |
| 60 using_discard_framebuffer(false) {} |
60 | 61 |
61 RendererCapabilities::~RendererCapabilities() {} | 62 RendererCapabilities::~RendererCapabilities() {} |
62 | 63 |
63 UIResourceRequest::UIResourceRequest() | 64 UIResourceRequest::UIResourceRequest() |
64 : type(UIResourceInvalidRequest), id(0), bitmap(NULL) {} | 65 : type(UIResourceInvalidRequest), id(0), bitmap(NULL) {} |
65 | 66 |
66 UIResourceRequest::~UIResourceRequest() {} | 67 UIResourceRequest::~UIResourceRequest() {} |
67 | 68 |
68 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { | 69 bool LayerTreeHost::AnyLayerTreeHostInstanceExists() { |
69 return s_num_layer_tree_instances > 0; | 70 return s_num_layer_tree_instances > 0; |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 void LayerTreeHost::DidLoseUIResources() { | 1191 void LayerTreeHost::DidLoseUIResources() { |
1191 // When output surface is lost, we need to recreate the resource. | 1192 // When output surface is lost, we need to recreate the resource. |
1192 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); | 1193 for (UIResourceClientMap::iterator iter = ui_resource_client_map_.begin(); |
1193 iter != ui_resource_client_map_.end(); | 1194 iter != ui_resource_client_map_.end(); |
1194 ++iter) { | 1195 ++iter) { |
1195 UIResourceLost(iter->first); | 1196 UIResourceLost(iter->first); |
1196 } | 1197 } |
1197 } | 1198 } |
1198 | 1199 |
1199 } // namespace cc | 1200 } // namespace cc |
OLD | NEW |