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

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

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: media Created 4 years, 9 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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); 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.
61 ::gpu::gles2::GLES2Interface* getGLES2Interface() override;
62
63 ::gpu::gles2::GLES2Interface* GetGLInterface() { 60 ::gpu::gles2::GLES2Interface* GetGLInterface() {
64 return gl_; 61 return gl_;
65 } 62 }
66 63
67 // Convert WebGL context creation attributes into command buffer / EGL size 64 // Convert WebGL context creation attributes into command buffer / EGL size
68 // requests. 65 // requests.
69 static void ConvertAttributes( 66 static void ConvertAttributes(
70 const blink::WebGraphicsContext3D::Attributes& attributes, 67 const blink::WebGraphicsContext3D::Attributes& attributes,
71 ::gpu::gles2::ContextCreationAttribHelper* output_attribs); 68 ::gpu::gles2::ContextCreationAttribHelper* output_attribs);
72 69
(...skipping 21 matching lines...) Expand all
94 // Errors raised by synthesizeGLError(). 91 // Errors raised by synthesizeGLError().
95 std::vector<blink::WGC3Denum> synthetic_errors_; 92 std::vector<blink::WGC3Denum> synthetic_errors_;
96 93
97 ::gpu::gles2::GLES2Interface* gl_; 94 ::gpu::gles2::GLES2Interface* gl_;
98 bool lose_context_when_out_of_memory_; 95 bool lose_context_when_out_of_memory_;
99 }; 96 };
100 97
101 } // namespace gpu_blink 98 } // namespace gpu_blink
102 99
103 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ 100 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698