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

Side by Side Diff: content/common/gpu/client/content_gl_context.h

Issue 9699125: Chromium implementation of discardBackbuffer WebGraphicsContext3D extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming extension for now, so its not mistaken for the standard one Created 8 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 | 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 API is consistent with other OpenGL setup APIs like window's WGL 5 // This API is consistent with other OpenGL setup APIs like window's WGL
6 // and pepper's PGL. This API is used to manage OpenGL ContentGLContexts in the 6 // and pepper's PGL. This API is used to manage OpenGL ContentGLContexts in the
7 // Chrome renderer process in a way that is consistent with other platforms. 7 // Chrome renderer process in a way that is consistent with other platforms.
8 8
9 #ifndef CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_ 9 #ifndef CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_
10 #define CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_ 10 #define CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // by the parent ContentGLContext. 157 // by the parent ContentGLContext.
158 bool SwapBuffers(); 158 bool SwapBuffers();
159 159
160 // Run the task once the channel has been flushed. Takes care of deleting the 160 // Run the task once the channel has been flushed. Takes care of deleting the
161 // task whether the echo succeeds or not. 161 // task whether the echo succeeds or not.
162 bool Echo(const base::Closure& task); 162 bool Echo(const base::Closure& task);
163 163
164 // Sends an IPC message with the new state of surface visibility 164 // Sends an IPC message with the new state of surface visibility
165 bool SetSurfaceVisible(bool visibility); 165 bool SetSurfaceVisible(bool visibility);
166 166
167 bool DiscardBackbuffer();
168 bool EnsureBackbuffer();
169
167 // Register a callback to invoke whenever we recieve a new memory allocation. 170 // Register a callback to invoke whenever we recieve a new memory allocation.
168 void SetMemoryAllocationChangedCallback( 171 void SetMemoryAllocationChangedCallback(
169 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& 172 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
170 callback); 173 callback);
171 174
172 // TODO(gman): Remove this 175 // TODO(gman): Remove this
173 void DisableShaderTranslation(); 176 void DisableShaderTranslation();
174 177
175 // Allows direct access to the GLES2 implementation so a ContentGLContext 178 // Allows direct access to the GLES2 implementation so a ContentGLContext
176 // can be used without making it current. 179 // can be used without making it current.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 gpu::gles2::GLES2CmdHelper* gles2_helper_; 219 gpu::gles2::GLES2CmdHelper* gles2_helper_;
217 gpu::TransferBuffer* transfer_buffer_; 220 gpu::TransferBuffer* transfer_buffer_;
218 gpu::gles2::GLES2Implementation* gles2_implementation_; 221 gpu::gles2::GLES2Implementation* gles2_implementation_;
219 Error last_error_; 222 Error last_error_;
220 int frame_number_; 223 int frame_number_;
221 224
222 DISALLOW_COPY_AND_ASSIGN(ContentGLContext); 225 DISALLOW_COPY_AND_ASSIGN(ContentGLContext);
223 }; 226 };
224 227
225 #endif // CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_ 228 #endif // CONTENT_COMMON_GPU_CLIENT_RENDERER_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.cc ('k') | content/common/gpu/client/content_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698