OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/compositor/test_web_graphics_context_3d.h" | 5 #include "ui/compositor/test_web_graphics_context_3d.h" |
6 | 6 |
7 #include "ui/gl/gl_bindings.h" | 7 #include "ui/gl/gl_bindings.h" |
8 #include "ui/gl/gl_context_stub.h" | 8 #include "ui/gl/gl_context_stub.h" |
9 #include "ui/gl/gl_surface_stub.h" | 9 #include "ui/gl/gl_surface_stub.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 } | 26 } |
27 | 27 |
28 int TestWebGraphicsContext3D::width() { | 28 int TestWebGraphicsContext3D::width() { |
29 return 0; | 29 return 0; |
30 } | 30 } |
31 | 31 |
32 int TestWebGraphicsContext3D::height() { | 32 int TestWebGraphicsContext3D::height() { |
33 return 0; | 33 return 0; |
34 } | 34 } |
35 | 35 |
36 bool TestWebGraphicsContext3D::isGLES2Compliant() { | |
37 return false; | |
38 } | |
39 | |
40 bool TestWebGraphicsContext3D::readBackFramebuffer( | 36 bool TestWebGraphicsContext3D::readBackFramebuffer( |
41 unsigned char* pixels, | 37 unsigned char* pixels, |
42 size_t bufferSize, | 38 size_t bufferSize, |
43 WebKit::WebGLId framebuffer, | 39 WebKit::WebGLId framebuffer, |
44 int width, | 40 int width, |
45 int height) { | 41 int height) { |
46 return false; | 42 return false; |
47 } | 43 } |
48 | 44 |
49 WebKit::WebGLId TestWebGraphicsContext3D::getPlatformTextureId() { | |
50 return 0; | |
51 } | |
52 | |
53 bool TestWebGraphicsContext3D::isContextLost() { | 45 bool TestWebGraphicsContext3D::isContextLost() { |
54 return false; | 46 return false; |
55 } | 47 } |
56 | 48 |
57 void* TestWebGraphicsContext3D::mapBufferSubDataCHROMIUM( | 49 void* TestWebGraphicsContext3D::mapBufferSubDataCHROMIUM( |
58 WebKit::WGC3Denum target, | 50 WebKit::WGC3Denum target, |
59 WebKit::WGC3Dintptr offset, | 51 WebKit::WGC3Dintptr offset, |
60 WebKit::WGC3Dsizeiptr size, | 52 WebKit::WGC3Dsizeiptr size, |
61 WebKit::WGC3Denum access) { | 53 WebKit::WGC3Denum access) { |
62 return 0; | 54 return 0; |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 { | 218 { |
227 return 1; | 219 return 1; |
228 } | 220 } |
229 | 221 |
230 WebKit::WGC3Dboolean TestWebGraphicsContext3D::isQueryEXT(WebKit::WebGLId) | 222 WebKit::WGC3Dboolean TestWebGraphicsContext3D::isQueryEXT(WebKit::WebGLId) |
231 { | 223 { |
232 return true; | 224 return true; |
233 } | 225 } |
234 | 226 |
235 } // namespace ui | 227 } // namespace ui |
OLD | NEW |