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 FakeWebGraphicsContext3D_h | 5 #ifndef CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define FakeWebGraphicsContext3D_h | 6 #define CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
7 | 7 |
8 #include "third_party/khronos/GLES2/gl2.h" | 8 #include "third_party/khronos/GLES2/gl2.h" |
9 #include <public/WebGraphicsContext3D.h> | 9 #include <public/WebGraphicsContext3D.h> |
10 | 10 |
11 namespace WebKit { | 11 namespace WebKit { |
12 | 12 |
13 // WebGraphicsContext3D base class for use in WebKit unit tests. | 13 // WebGraphicsContext3D base class for use in WebKit unit tests. |
14 // All operations are no-ops (returning 0 if necessary). | 14 // All operations are no-ops (returning 0 if necessary). |
15 class FakeWebGraphicsContext3D : public WebGraphicsContext3D { | 15 class FakeWebGraphicsContext3D : public WebGraphicsContext3D { |
16 public: | 16 public: |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 virtual void getQueryivEXT(WGC3Denum, WGC3Denum, WGC3Dint*) { } | 250 virtual void getQueryivEXT(WGC3Denum, WGC3Denum, WGC3Dint*) { } |
251 virtual void getQueryObjectuivEXT(WebGLId, WGC3Denum, WGC3Duint*) { } | 251 virtual void getQueryObjectuivEXT(WebGLId, WGC3Denum, WGC3Duint*) { } |
252 | 252 |
253 protected: | 253 protected: |
254 unsigned m_nextTextureId; | 254 unsigned m_nextTextureId; |
255 Attributes m_attrs; | 255 Attributes m_attrs; |
256 }; | 256 }; |
257 | 257 |
258 } // namespace WebKit | 258 } // namespace WebKit |
259 | 259 |
260 #endif // FakeWebGraphicsContext3D_h | 260 #endif // CC_TEST_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |