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_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_TEST_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 19 matching lines...) Expand all Loading... |
30 static scoped_ptr<TestWebGraphicsContext3D> Create(); | 30 static scoped_ptr<TestWebGraphicsContext3D> Create(); |
31 | 31 |
32 virtual ~TestWebGraphicsContext3D(); | 32 virtual ~TestWebGraphicsContext3D(); |
33 | 33 |
34 virtual bool makeContextCurrent(); | 34 virtual bool makeContextCurrent(); |
35 | 35 |
36 virtual void reshapeWithScaleFactor( | 36 virtual void reshapeWithScaleFactor( |
37 int width, int height, float scale_factor); | 37 int width, int height, float scale_factor); |
38 | 38 |
39 virtual bool isContextLost(); | 39 virtual bool isContextLost(); |
40 virtual WebKit::WGC3Denum getGraphicsResetStatusARB(); | |
41 | 40 |
42 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); | 41 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); |
43 virtual void bindFramebuffer( | 42 virtual void bindFramebuffer( |
44 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); | 43 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); |
45 virtual void bindRenderbuffer( | 44 virtual void bindRenderbuffer( |
46 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer); | 45 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer); |
47 virtual void bindTexture( | 46 virtual void bindTexture( |
48 WebKit::WGC3Denum target, | 47 WebKit::WGC3Denum target, |
49 WebKit::WebGLId texture_id); | 48 WebKit::WebGLId texture_id); |
50 | 49 |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 343 |
345 scoped_refptr<Namespace> namespace_; | 344 scoped_refptr<Namespace> namespace_; |
346 static Namespace* shared_namespace_; | 345 static Namespace* shared_namespace_; |
347 | 346 |
348 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 347 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
349 }; | 348 }; |
350 | 349 |
351 } // namespace cc | 350 } // namespace cc |
352 | 351 |
353 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 352 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |