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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 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 // 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 <vector> 10 #include <vector>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 // Initializes the graphics context. Can create an offscreen 109 // Initializes the graphics context. Can create an offscreen
110 // decoder with a frame buffer that can be referenced from the parent. 110 // decoder with a frame buffer that can be referenced from the parent.
111 // Takes ownership of GLContext. 111 // Takes ownership of GLContext.
112 // Parameters: 112 // Parameters:
113 // surface: the GL surface to render to. 113 // surface: the GL surface to render to.
114 // context: the GL context to render to. 114 // context: the GL context to render to.
115 // offscreen: whether to make the context offscreen or not. When FBO 0 is 115 // offscreen: whether to make the context offscreen or not. When FBO 0 is
116 // bound, offscreen contexts render to an internal buffer, onscreen ones 116 // bound, offscreen contexts render to an internal buffer, onscreen ones
117 // to the surface. 117 // to the surface.
118 // size: the size if the GL context is offscreen. 118 // offscreen_size: the size if the GL context is offscreen.
119 // Returns: 119 // Returns:
120 // true if successful. 120 // true if successful.
121 virtual bool Initialize(const scoped_refptr<gfx::GLSurface>& surface, 121 virtual bool Initialize(const scoped_refptr<gfx::GLSurface>& surface,
122 const scoped_refptr<gfx::GLContext>& context, 122 const scoped_refptr<gfx::GLContext>& context,
123 bool offscreen, 123 bool offscreen,
124 const gfx::Size& size, 124 const gfx::Size& offscreen_size,
125 const DisallowedFeatures& disallowed_features, 125 const DisallowedFeatures& disallowed_features,
126 const std::vector<int32>& attribs) = 0; 126 const std::vector<int32>& attribs) = 0;
127 127
128 // Destroys the graphics context. 128 // Destroys the graphics context.
129 virtual void Destroy(bool have_context) = 0; 129 virtual void Destroy(bool have_context) = 0;
130 130
131 // Set the surface associated with the default FBO. 131 // Set the surface associated with the default FBO.
132 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0; 132 virtual void SetSurface(const scoped_refptr<gfx::GLSurface>& surface) = 0;
133 133
134 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0; 134 virtual void ProduceFrontBuffer(const Mailbox& mailbox) = 0;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 bool log_commands_; 265 bool log_commands_;
266 bool unsafe_es3_apis_enabled_; 266 bool unsafe_es3_apis_enabled_;
267 267
268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
269 }; 269 };
270 270
271 } // namespace gles2 271 } // namespace gles2
272 } // namespace gpu 272 } // namespace gpu
273 273
274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.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