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

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

Issue 10007034: aura: Change shared context to be offscreen for arm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 | Annotate | Revision Log
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void set_log_synthesized_gl_errors(bool enabled) { 80 void set_log_synthesized_gl_errors(bool enabled) {
81 log_synthesized_gl_errors_ = enabled; 81 log_synthesized_gl_errors_ = enabled;
82 } 82 }
83 83
84 // Initializes the graphics context. Can create an offscreen 84 // Initializes the graphics context. Can create an offscreen
85 // decoder with a frame buffer that can be referenced from the parent. 85 // decoder with a frame buffer that can be referenced from the parent.
86 // Takes ownership of GLContext. 86 // Takes ownership of GLContext.
87 // Parameters: 87 // Parameters:
88 // surface: the GL surface to render to. 88 // surface: the GL surface to render to.
89 // context: the GL context to render to. 89 // context: the GL context to render to.
90 // offscreen: whether to make the context offscreen or not. When FBO 0 is
91 // bound, offscreen contexts render to an internal buffer, onscreen ones
92 // to the surface.
90 // size: the size if the GL context is offscreen. 93 // size: the size if the GL context is offscreen.
91 // allowed_extensions: A string in the same format as 94 // allowed_extensions: A string in the same format as
92 // glGetString(GL_EXTENSIONS) that lists the extensions this context 95 // glGetString(GL_EXTENSIONS) that lists the extensions this context
93 // should allow. Passing NULL or "*" means allow all extensions. 96 // should allow. Passing NULL or "*" means allow all extensions.
94 // Returns: 97 // Returns:
95 // true if successful. 98 // true if successful.
96 virtual bool Initialize(const scoped_refptr<gfx::GLSurface>& surface, 99 virtual bool Initialize(const scoped_refptr<gfx::GLSurface>& surface,
97 const scoped_refptr<gfx::GLContext>& context, 100 const scoped_refptr<gfx::GLContext>& context,
101 bool offscreen,
98 const gfx::Size& size, 102 const gfx::Size& size,
99 const DisallowedFeatures& disallowed_features, 103 const DisallowedFeatures& disallowed_features,
100 const char* allowed_extensions, 104 const char* allowed_extensions,
101 const std::vector<int32>& attribs) = 0; 105 const std::vector<int32>& attribs) = 0;
102 106
103 // Destroys the graphics context. 107 // Destroys the graphics context.
104 virtual void Destroy() = 0; 108 virtual void Destroy() = 0;
105 109
106 virtual bool SetParent(GLES2Decoder* parent_decoder, 110 virtual bool SetParent(GLES2Decoder* parent_decoder,
107 uint32 parent_texture_id) = 0; 111 uint32 parent_texture_id) = 0;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool log_synthesized_gl_errors_; 182 bool log_synthesized_gl_errors_;
179 static bool testing_force_is_angle_; 183 static bool testing_force_is_angle_;
180 184
181 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 185 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
182 }; 186 };
183 187
184 } // namespace gles2 188 } // namespace gles2
185 } // namespace gpu 189 } // namespace gpu
186 190
187 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 191 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.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