Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.h

Issue 1444683002: Revert of Fix gpu command buffer use after free by GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/common/gpu/client/grcontext_for_webgraphicscontext3d.cc ('k') | gpu/blink/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698