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

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

Issue 7762009: Manually merging trunk revs 95836 and 96904 to 835 branch (second attempt) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/835/src/
Patch Set: 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 CommandBufferProxy* GetCommandBufferProxy(); 186 CommandBufferProxy* GetCommandBufferProxy();
187 187
188 private: 188 private:
189 explicit RendererGLContext(GpuChannelHost* channel); 189 explicit RendererGLContext(GpuChannelHost* channel);
190 190
191 bool Initialize(bool onscreen, 191 bool Initialize(bool onscreen,
192 int render_view_id, 192 int render_view_id,
193 const gfx::Size& size, 193 const gfx::Size& size,
194 bool share_resources, 194 bool share_resources,
195 bool bind_generates_resource,
195 RendererGLContext* share_group, 196 RendererGLContext* share_group,
196 const char* allowed_extensions, 197 const char* allowed_extensions,
197 const int32* attrib_list, 198 const int32* attrib_list,
198 const GURL& active_url); 199 const GURL& active_url);
199 void Destroy(); 200 void Destroy();
200 201
201 void OnSwapBuffers(); 202 void OnSwapBuffers();
202 void OnContextLost(); 203 void OnContextLost();
203 204
204 scoped_refptr<GpuChannelHost> channel_; 205 scoped_refptr<GpuChannelHost> channel_;
205 base::WeakPtr<RendererGLContext> parent_; 206 base::WeakPtr<RendererGLContext> parent_;
206 scoped_ptr<Callback0::Type> swap_buffers_callback_; 207 scoped_ptr<Callback0::Type> swap_buffers_callback_;
207 scoped_ptr<Callback1<ContextLostReason>::Type> context_lost_callback_; 208 scoped_ptr<Callback1<ContextLostReason>::Type> context_lost_callback_;
208 uint32 parent_texture_id_; 209 uint32 parent_texture_id_;
209 CommandBufferProxy* command_buffer_; 210 CommandBufferProxy* command_buffer_;
210 gpu::gles2::GLES2CmdHelper* gles2_helper_; 211 gpu::gles2::GLES2CmdHelper* gles2_helper_;
211 int32 transfer_buffer_id_; 212 int32 transfer_buffer_id_;
212 gpu::gles2::GLES2Implementation* gles2_implementation_; 213 gpu::gles2::GLES2Implementation* gles2_implementation_;
213 gfx::Size size_; 214 gfx::Size size_;
214 Error last_error_; 215 Error last_error_;
215 int frame_number_; 216 int frame_number_;
216 217
217 DISALLOW_COPY_AND_ASSIGN(RendererGLContext); 218 DISALLOW_COPY_AND_ASSIGN(RendererGLContext);
218 }; 219 };
219 220
220 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_ 221 #endif // CONTENT_RENDERER_GPU_RENDERER_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698