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

Side by Side Diff: content/renderer/gpu/renderer_gl_context.h

Issue 7713015: Split WebGraphicsContext3DCommandBufferImpl::initialize() into two stages. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Moved asserts to RendererGLContext Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 RendererGLContexts in the 6 // and pepper's PGL. This API is used to manage OpenGL RendererGLContexts 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_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ 9 #ifndef CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_
10 #define CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ 10 #define CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 base::WeakPtr<RendererGLContext> parent_; 194 base::WeakPtr<RendererGLContext> parent_;
195 scoped_ptr<Callback0::Type> swap_buffers_callback_; 195 scoped_ptr<Callback0::Type> swap_buffers_callback_;
196 scoped_ptr<Callback1<ContextLostReason>::Type> context_lost_callback_; 196 scoped_ptr<Callback1<ContextLostReason>::Type> context_lost_callback_;
197 uint32 parent_texture_id_; 197 uint32 parent_texture_id_;
198 CommandBufferProxy* command_buffer_; 198 CommandBufferProxy* command_buffer_;
199 gpu::gles2::GLES2CmdHelper* gles2_helper_; 199 gpu::gles2::GLES2CmdHelper* gles2_helper_;
200 int32 transfer_buffer_id_; 200 int32 transfer_buffer_id_;
201 gpu::gles2::GLES2Implementation* gles2_implementation_; 201 gpu::gles2::GLES2Implementation* gles2_implementation_;
202 Error last_error_; 202 Error last_error_;
203 int frame_number_; 203 int frame_number_;
204 #ifndef NDEBUG
205 // Used to assert that this object is used on a single thread.
206 MessageLoop* message_loop_;
207 #endif
204 208
205 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); 209 DISALLOW_COPY_AND_ASSIGN(RendererGLContext);
206 }; 210 };
207 211
208 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ 212 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/renderer_gl_context.cc » ('j') | content/renderer/gpu/renderer_gl_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698