| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 } | 187 } |
| 188 void set_have_extension_egl_image(bool have) { | 188 void set_have_extension_egl_image(bool have) { |
| 189 test_capabilities_.egl_image_external = have; | 189 test_capabilities_.egl_image_external = have; |
| 190 } | 190 } |
| 191 void set_have_post_sub_buffer(bool have) { | 191 void set_have_post_sub_buffer(bool have) { |
| 192 test_capabilities_.post_sub_buffer = have; | 192 test_capabilities_.post_sub_buffer = have; |
| 193 } | 193 } |
| 194 void set_have_discard_framebuffer(bool have) { | 194 void set_have_discard_framebuffer(bool have) { |
| 195 test_capabilities_.discard_framebuffer = have; | 195 test_capabilities_.discard_framebuffer = have; |
| 196 } | 196 } |
| 197 void set_support_compressed_texture_etc1(bool support) { |
| 198 test_capabilities_.texture_format_etc1 = support; |
| 199 } |
| 197 | 200 |
| 198 // When this context is lost, all contexts in its share group are also lost. | 201 // When this context is lost, all contexts in its share group are also lost. |
| 199 void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) { | 202 void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) { |
| 200 shared_contexts_.push_back(context3d); | 203 shared_contexts_.push_back(context3d); |
| 201 } | 204 } |
| 202 | 205 |
| 203 void set_max_texture_size(int size) { max_texture_size_ = size; } | 206 void set_max_texture_size(int size) { max_texture_size_ = size; } |
| 204 | 207 |
| 205 static const WebKit::WebGLId kExternalTextureId; | 208 static const WebKit::WebGLId kExternalTextureId; |
| 206 virtual WebKit::WebGLId NextTextureId(); | 209 virtual WebKit::WebGLId NextTextureId(); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 306 |
| 304 scoped_refptr<Namespace> namespace_; | 307 scoped_refptr<Namespace> namespace_; |
| 305 static Namespace* shared_namespace_; | 308 static Namespace* shared_namespace_; |
| 306 | 309 |
| 307 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 310 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 308 }; | 311 }; |
| 309 | 312 |
| 310 } // namespace cc | 313 } // namespace cc |
| 311 | 314 |
| 312 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 315 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |