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/output/delegating_renderer.h" | 5 #include "cc/output/delegating_renderer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } else if (extensions[i] == "GL_OES_EGL_image_external") { | 98 } else if (extensions[i] == "GL_OES_EGL_image_external") { |
99 has_egl_image = true; | 99 has_egl_image = true; |
100 } else if (extensions[i] == "GL_CHROMIUM_map_image") { | 100 } else if (extensions[i] == "GL_CHROMIUM_map_image") { |
101 has_map_image = true; | 101 has_map_image = true; |
102 } | 102 } |
103 } | 103 } |
104 | 104 |
105 if (has_io_surface) | 105 if (has_io_surface) |
106 DCHECK(has_arb_texture_rect); | 106 DCHECK(has_arb_texture_rect); |
107 | 107 |
108 capabilities_.using_accelerated_painting = | |
109 Settings().accelerate_painting && | |
110 capabilities_.best_texture_format == GL_BGRA_EXT && | |
111 has_read_bgra; | |
112 | |
113 // TODO(piman): loop visibility to GPU process? | 108 // TODO(piman): loop visibility to GPU process? |
114 capabilities_.using_set_visibility = has_set_visibility; | 109 capabilities_.using_set_visibility = has_set_visibility; |
115 | 110 |
116 // TODO(danakj): Support GpuMemoryManager. | 111 // TODO(danakj): Support GpuMemoryManager. |
117 capabilities_.using_gpu_memory_manager = false; | 112 capabilities_.using_gpu_memory_manager = false; |
118 | 113 |
119 capabilities_.using_egl_image = has_egl_image; | 114 capabilities_.using_egl_image = has_egl_image; |
120 | 115 |
121 capabilities_.using_map_image = has_map_image; | 116 capabilities_.using_map_image = has_map_image; |
122 | 117 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 if (!context3d) | 181 if (!context3d) |
187 return false; | 182 return false; |
188 return context3d->getGraphicsResetStatusARB() != GL_NO_ERROR; | 183 return context3d->getGraphicsResetStatusARB() != GL_NO_ERROR; |
189 } | 184 } |
190 | 185 |
191 void DelegatingRenderer::SetVisible(bool visible) { | 186 void DelegatingRenderer::SetVisible(bool visible) { |
192 visible_ = visible; | 187 visible_ = visible; |
193 } | 188 } |
194 | 189 |
195 } // namespace cc | 190 } // namespace cc |
OLD | NEW |