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

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

Issue 2106103005: Revert of Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // context: the GL context to render to. 147 // context: the GL context to render to.
148 // offscreen: whether to make the context offscreen or not. When FBO 0 is 148 // offscreen: whether to make the context offscreen or not. When FBO 0 is
149 // bound, offscreen contexts render to an internal buffer, onscreen ones 149 // bound, offscreen contexts render to an internal buffer, onscreen ones
150 // to the surface. 150 // to the surface.
151 // offscreen_size: the size if the GL context is offscreen. 151 // offscreen_size: the size if the GL context is offscreen.
152 // Returns: 152 // Returns:
153 // true if successful. 153 // true if successful.
154 virtual bool Initialize(const scoped_refptr<gl::GLSurface>& surface, 154 virtual bool Initialize(const scoped_refptr<gl::GLSurface>& surface,
155 const scoped_refptr<gl::GLContext>& context, 155 const scoped_refptr<gl::GLContext>& context,
156 bool offscreen, 156 bool offscreen,
157 const gfx::Size& offscreen_size,
157 const DisallowedFeatures& disallowed_features, 158 const DisallowedFeatures& disallowed_features,
158 const ContextCreationAttribHelper& attrib_helper) = 0; 159 const ContextCreationAttribHelper& attrib_helper) = 0;
159 160
160 // Destroys the graphics context. 161 // Destroys the graphics context.
161 virtual void Destroy(bool have_context) = 0; 162 virtual void Destroy(bool have_context) = 0;
162 163
163 // Set the surface associated with the default FBO. 164 // Set the surface associated with the default FBO.
164 virtual void SetSurface(const scoped_refptr<gl::GLSurface>& surface) = 0; 165 virtual void SetSurface(const scoped_refptr<gl::GLSurface>& surface) = 0;
165 // Releases the surface associated with the GL context. 166 // Releases the surface associated with the GL context.
166 // The decoder should not be used until a new surface is set. 167 // The decoder should not be used until a new surface is set.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool debug_; 345 bool debug_;
345 bool log_commands_; 346 bool log_commands_;
346 bool unsafe_es3_apis_enabled_; 347 bool unsafe_es3_apis_enabled_;
347 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 348 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
348 }; 349 };
349 350
350 } // namespace gles2 351 } // namespace gles2
351 } // namespace gpu 352 } // namespace gpu
352 353
353 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 354 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698