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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void loseContextCHROMIUM(blink::WGC3Denum current, | 43 virtual void loseContextCHROMIUM(blink::WGC3Denum current, |
44 blink::WGC3Denum other); | 44 blink::WGC3Denum other); |
45 | 45 |
46 virtual void reshapeWithScaleFactor( | 46 virtual void reshapeWithScaleFactor( |
47 int width, int height, float scale_factor); | 47 int width, int height, float scale_factor); |
48 | 48 |
49 virtual void prepareTexture(); | 49 virtual void prepareTexture(); |
50 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); | 50 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height); |
51 | 51 |
52 virtual void activeTexture(blink::WGC3Denum texture); | 52 virtual void activeTexture(blink::WGC3Denum texture); |
| 53 virtual void applyScreenSpaceAntialiasingCHROMIUM(); |
53 virtual void attachShader(blink::WebGLId program, blink::WebGLId shader); | 54 virtual void attachShader(blink::WebGLId program, blink::WebGLId shader); |
54 virtual void bindAttribLocation(blink::WebGLId program, | 55 virtual void bindAttribLocation(blink::WebGLId program, |
55 blink::WGC3Duint index, | 56 blink::WGC3Duint index, |
56 const blink::WGC3Dchar* name); | 57 const blink::WGC3Dchar* name); |
57 virtual void bindBuffer(blink::WGC3Denum target, blink::WebGLId buffer); | 58 virtual void bindBuffer(blink::WGC3Denum target, blink::WebGLId buffer); |
58 virtual void bindFramebuffer(blink::WGC3Denum target, | 59 virtual void bindFramebuffer(blink::WGC3Denum target, |
59 blink::WebGLId framebuffer); | 60 blink::WebGLId framebuffer); |
60 virtual void bindRenderbuffer(blink::WGC3Denum target, | 61 virtual void bindRenderbuffer(blink::WGC3Denum target, |
61 blink::WebGLId renderbuffer); | 62 blink::WebGLId renderbuffer); |
62 virtual void bindTexture(blink::WGC3Denum target, blink::WebGLId texture); | 63 virtual void bindTexture(blink::WGC3Denum target, blink::WebGLId texture); |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 std::vector<blink::WGC3Denum> synthetic_errors_; | 961 std::vector<blink::WGC3Denum> synthetic_errors_; |
961 | 962 |
962 ::gpu::gles2::GLES2Interface* gl_; | 963 ::gpu::gles2::GLES2Interface* gl_; |
963 bool lose_context_when_out_of_memory_; | 964 bool lose_context_when_out_of_memory_; |
964 uint32_t flush_id_; | 965 uint32_t flush_id_; |
965 }; | 966 }; |
966 | 967 |
967 } // namespace gpu_blink | 968 } // namespace gpu_blink |
968 | 969 |
969 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 970 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |