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 | |
937 ::gpu::gles2::GLES2Interface* GetGLInterface() { | 935 ::gpu::gles2::GLES2Interface* GetGLInterface() { |
938 return gl_; | 936 return gl_; |
939 } | 937 } |
940 | 938 |
941 // Convert WebGL context creation attributes into command buffer / EGL size | 939 // Convert WebGL context creation attributes into command buffer / EGL size |
942 // requests. | 940 // requests. |
943 static void ConvertAttributes( | 941 static void ConvertAttributes( |
944 const blink::WebGraphicsContext3D::Attributes& attributes, | 942 const blink::WebGraphicsContext3D::Attributes& attributes, |
945 ::gpu::gles2::ContextCreationAttribHelper* output_attribs); | 943 ::gpu::gles2::ContextCreationAttribHelper* output_attribs); |
946 | 944 |
(...skipping 24 matching lines...) Expand all Loading... |
971 std::vector<blink::WGC3Denum> synthetic_errors_; | 969 std::vector<blink::WGC3Denum> synthetic_errors_; |
972 | 970 |
973 ::gpu::gles2::GLES2Interface* gl_; | 971 ::gpu::gles2::GLES2Interface* gl_; |
974 bool lose_context_when_out_of_memory_; | 972 bool lose_context_when_out_of_memory_; |
975 uint32_t flush_id_; | 973 uint32_t flush_id_; |
976 }; | 974 }; |
977 | 975 |
978 } // namespace gpu_blink | 976 } // namespace gpu_blink |
979 | 977 |
980 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 978 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |