| 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 12 matching lines...) Expand all Loading... |
| 23 namespace cc { | 23 namespace cc { |
| 24 | 24 |
| 25 class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { | 25 class CC_EXPORT TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { |
| 26 public: | 26 public: |
| 27 static scoped_ptr<TestWebGraphicsContext3D> Create(); | 27 static scoped_ptr<TestWebGraphicsContext3D> Create(); |
| 28 | 28 |
| 29 virtual ~TestWebGraphicsContext3D(); | 29 virtual ~TestWebGraphicsContext3D(); |
| 30 | 30 |
| 31 virtual bool makeContextCurrent(); | 31 virtual bool makeContextCurrent(); |
| 32 | 32 |
| 33 virtual int width() OVERRIDE; | |
| 34 virtual int height() OVERRIDE; | |
| 35 | |
| 36 virtual void reshapeWithScaleFactor( | 33 virtual void reshapeWithScaleFactor( |
| 37 int width, int height, float scale_factor); | 34 int width, int height, float scale_factor); |
| 38 | 35 |
| 39 virtual bool isContextLost(); | 36 virtual bool isContextLost(); |
| 40 virtual WebKit::WGC3Denum getGraphicsResetStatusARB(); | 37 virtual WebKit::WGC3Denum getGraphicsResetStatusARB(); |
| 41 | 38 |
| 42 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); | 39 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); |
| 43 virtual void bindFramebuffer( | 40 virtual void bindFramebuffer( |
| 44 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); | 41 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); |
| 45 virtual void bindRenderbuffer( | 42 virtual void bindRenderbuffer( |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 | 281 |
| 285 scoped_refptr<Namespace> namespace_; | 282 scoped_refptr<Namespace> namespace_; |
| 286 static Namespace* shared_namespace_; | 283 static Namespace* shared_namespace_; |
| 287 | 284 |
| 288 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 285 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 289 }; | 286 }; |
| 290 | 287 |
| 291 } // namespace cc | 288 } // namespace cc |
| 292 | 289 |
| 293 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 290 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |