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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 1714883002: command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file contains the GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool offscreen, 151 bool offscreen,
152 const gfx::Size& offscreen_size, 152 const gfx::Size& offscreen_size,
153 const DisallowedFeatures& disallowed_features, 153 const DisallowedFeatures& disallowed_features,
154 const std::vector<int32_t>& attribs) = 0; 154 const std::vector<int32_t>& attribs) = 0;
155 155
156 // Destroys the graphics context. 156 // Destroys the graphics context.
157 virtual void Destroy(bool have_context) = 0; 157 virtual void Destroy(bool have_context) = 0;
158 158
159 // Set the surface associated with the default FBO. 159 // Set the surface associated with the default FBO.
160 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; 160 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0;
161 // Releases the surface associated with the GL context.
162 // The decoder should not be used until a new surface is set.
163 virtual void ReleaseSurface() = 0;
161 164
162 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0; 165 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0;
163 166
164 // Resize an offscreen frame buffer. 167 // Resize an offscreen frame buffer.
165 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; 168 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0;
166 169
167 // Make this decoder's GL context current. 170 // Make this decoder's GL context current.
168 virtual bool MakeCurrent() = 0; 171 virtual bool MakeCurrent() = 0;
169 172
170 // Gets the GLES2 Util which holds info. 173 // Gets the GLES2 Util which holds info.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 bool log_commands_; 317 bool log_commands_;
315 bool unsafe_es3_apis_enabled_; 318 bool unsafe_es3_apis_enabled_;
316 bool force_shader_name_hashing_for_test_; 319 bool force_shader_name_hashing_for_test_;
317 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 320 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
318 }; 321 };
319 322
320 } // namespace gles2 323 } // namespace gles2
321 } // namespace gpu 324 } // namespace gpu
322 325
323 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 326 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698