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 #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 16 matching lines...) Expand all Loading... |
27 const WebKit::WebGraphicsContext3D::Attributes& attributes) { | 27 const WebKit::WebGraphicsContext3D::Attributes& attributes) { |
28 return make_scoped_ptr(new TestWebGraphicsContext3D(attributes)); | 28 return make_scoped_ptr(new TestWebGraphicsContext3D(attributes)); |
29 } | 29 } |
30 virtual ~TestWebGraphicsContext3D(); | 30 virtual ~TestWebGraphicsContext3D(); |
31 | 31 |
32 virtual bool makeContextCurrent(); | 32 virtual bool makeContextCurrent(); |
33 | 33 |
34 virtual int width(); | 34 virtual int width(); |
35 virtual int height(); | 35 virtual int height(); |
36 | 36 |
37 virtual void reshape(int width, int height); | 37 virtual void reshapeWithScaleFactor( |
| 38 int width, int height, float scale_factor); |
38 | 39 |
39 virtual bool isContextLost(); | 40 virtual bool isContextLost(); |
40 virtual WebKit::WGC3Denum getGraphicsResetStatusARB(); | 41 virtual WebKit::WGC3Denum getGraphicsResetStatusARB(); |
41 | 42 |
42 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); | 43 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); |
43 virtual void bindFramebuffer( | 44 virtual void bindFramebuffer( |
44 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); | 45 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); |
45 virtual void bindRenderbuffer( | 46 virtual void bindRenderbuffer( |
46 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer); | 47 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer); |
47 virtual void bindTexture( | 48 virtual void bindTexture( |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 DISALLOW_COPY_AND_ASSIGN(Buffer); | 205 DISALLOW_COPY_AND_ASSIGN(Buffer); |
205 }; | 206 }; |
206 ScopedPtrHashMap<unsigned, Buffer> buffers_; | 207 ScopedPtrHashMap<unsigned, Buffer> buffers_; |
207 unsigned bound_buffer_; | 208 unsigned bound_buffer_; |
208 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 209 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
209 }; | 210 }; |
210 | 211 |
211 } // namespace cc | 212 } // namespace cc |
212 | 213 |
213 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 214 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |