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

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: Created 4 years, 10 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 // 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; 158 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0;
159 159
160 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0; 160 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0;
161 161
162 // Resize an offscreen frame buffer. 162 // Resize an offscreen frame buffer.
163 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0; 163 virtual bool ResizeOffscreenFrameBuffer(const gfx::Size& size) = 0;
164 164
165 // Make this decoder's GL context current. 165 // Make this decoder's GL context current.
166 virtual bool MakeCurrent() = 0; 166 virtual bool MakeCurrent() = 0;
167 167
168 // Release this decoder's GL context from being current.
169 virtual void ReleaseCurrent() = 0;
170
168 // Gets the GLES2 Util which holds info. 171 // Gets the GLES2 Util which holds info.
169 virtual GLES2Util* GetGLES2Util() = 0; 172 virtual GLES2Util* GetGLES2Util() = 0;
170 173
171 // Gets the associated GLContext. 174 // Gets the associated GLContext.
172 virtual gfx::GLContext* GetGLContext() = 0; 175 virtual gfx::GLContext* GetGLContext() = 0;
173 176
174 // Gets the associated ContextGroup 177 // Gets the associated ContextGroup
175 virtual ContextGroup* GetContextGroup() = 0; 178 virtual ContextGroup* GetContextGroup() = 0;
176 179
177 virtual Capabilities GetCapabilities() = 0; 180 virtual Capabilities GetCapabilities() = 0;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 bool log_commands_; 291 bool log_commands_;
289 bool unsafe_es3_apis_enabled_; 292 bool unsafe_es3_apis_enabled_;
290 bool force_shader_name_hashing_for_test_; 293 bool force_shader_name_hashing_for_test_;
291 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 294 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
292 }; 295 };
293 296
294 } // namespace gles2 297 } // namespace gles2
295 } // namespace gpu 298 } // namespace gpu
296 299
297 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 300 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698