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 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 ActiveInfo&) override; | 45 ActiveInfo&) override; |
46 | 46 |
47 blink::WebString getProgramInfoLog(blink::WebGLId program) override; | 47 blink::WebString getProgramInfoLog(blink::WebGLId program) override; |
48 blink::WebString getShaderInfoLog(blink::WebGLId shader) override; | 48 blink::WebString getShaderInfoLog(blink::WebGLId shader) override; |
49 blink::WebString getShaderSource(blink::WebGLId shader) override; | 49 blink::WebString getShaderSource(blink::WebGLId shader) override; |
50 | 50 |
51 blink::WebString getTranslatedShaderSourceANGLE( | 51 blink::WebString getTranslatedShaderSourceANGLE( |
52 blink::WebGLId shader) override; | 52 blink::WebGLId shader) override; |
53 | 53 |
54 void setContextLostCallback( | 54 void setContextLostCallback( |
55 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback) override; | 55 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
56 | 56 |
57 void setErrorMessageCallback( | 57 void setErrorMessageCallback( |
58 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* callback) override; | 58 WebGraphicsContext3D::WebGraphicsErrorMessageCallback* callback) override; |
59 | 59 |
60 // WebGraphicsContext3D implementation. | 60 // WebGraphicsContext3D implementation. |
61 ::gpu::gles2::GLES2Interface* getGLES2Interface() override; | 61 ::gpu::gles2::GLES2Interface* getGLES2Interface() override; |
62 | 62 |
63 ::gpu::gles2::GLES2Interface* GetGLInterface() { | 63 ::gpu::gles2::GLES2Interface* GetGLInterface() { |
64 return gl_; | 64 return gl_; |
65 } | 65 } |
(...skipping 28 matching lines...) Expand all Loading... |
94 // Errors raised by synthesizeGLError(). | 94 // Errors raised by synthesizeGLError(). |
95 std::vector<blink::WGC3Denum> synthetic_errors_; | 95 std::vector<blink::WGC3Denum> synthetic_errors_; |
96 | 96 |
97 ::gpu::gles2::GLES2Interface* gl_; | 97 ::gpu::gles2::GLES2Interface* gl_; |
98 bool lose_context_when_out_of_memory_; | 98 bool lose_context_when_out_of_memory_; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace gpu_blink | 101 } // namespace gpu_blink |
102 | 102 |
103 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 103 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |