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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 blink::WGC3Denum type, | 925 blink::WGC3Denum type, |
926 blink::WGC3Dsizei stride, | 926 blink::WGC3Dsizei stride, |
927 blink::WGC3Dintptr pointer) override; | 927 blink::WGC3Dintptr pointer) override; |
928 void waitSync(blink::WGC3Dsync sync, | 928 void waitSync(blink::WGC3Dsync sync, |
929 blink::WGC3Dbitfield flags, | 929 blink::WGC3Dbitfield flags, |
930 blink::WGC3Duint64 timeout) override; | 930 blink::WGC3Duint64 timeout) override; |
931 | 931 |
932 bool isContextLost() override; | 932 bool isContextLost() override; |
933 blink::WGC3Denum getGraphicsResetStatusARB() override; | 933 blink::WGC3Denum getGraphicsResetStatusARB() override; |
934 | 934 |
| 935 GrGLInterface* createGrGLInterface() override; |
| 936 |
935 ::gpu::gles2::GLES2Interface* GetGLInterface() { | 937 ::gpu::gles2::GLES2Interface* GetGLInterface() { |
936 return gl_; | 938 return gl_; |
937 } | 939 } |
938 | 940 |
939 // Convert WebGL context creation attributes into command buffer / EGL size | 941 // Convert WebGL context creation attributes into command buffer / EGL size |
940 // requests. | 942 // requests. |
941 static void ConvertAttributes( | 943 static void ConvertAttributes( |
942 const blink::WebGraphicsContext3D::Attributes& attributes, | 944 const blink::WebGraphicsContext3D::Attributes& attributes, |
943 ::gpu::gles2::ContextCreationAttribHelper* output_attribs); | 945 ::gpu::gles2::ContextCreationAttribHelper* output_attribs); |
944 | 946 |
(...skipping 24 matching lines...) Expand all Loading... |
969 std::vector<blink::WGC3Denum> synthetic_errors_; | 971 std::vector<blink::WGC3Denum> synthetic_errors_; |
970 | 972 |
971 ::gpu::gles2::GLES2Interface* gl_; | 973 ::gpu::gles2::GLES2Interface* gl_; |
972 bool lose_context_when_out_of_memory_; | 974 bool lose_context_when_out_of_memory_; |
973 uint32_t flush_id_; | 975 uint32_t flush_id_; |
974 }; | 976 }; |
975 | 977 |
976 } // namespace gpu_blink | 978 } // namespace gpu_blink |
977 | 979 |
978 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |