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

Unified Diff: chrome/gpu/gpu_command_buffer_stub.h

Issue 3067026: Initial port of accelerated compositor to Mac OS X 10.6. Reused... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/gpu/gpu_channel.cc ('k') | chrome/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_command_buffer_stub.h
===================================================================
--- chrome/gpu/gpu_command_buffer_stub.h (revision 54820)
+++ chrome/gpu/gpu_command_buffer_stub.h (working copy)
@@ -29,7 +29,9 @@
GpuCommandBufferStub* parent,
const gfx::Size& size,
uint32 parent_texture_id,
- int32 route_id);
+ int32 route_id,
+ int32 renderer_id,
+ int32 render_view_id);
virtual ~GpuCommandBufferStub();
@@ -55,6 +57,11 @@
uint32* size);
void OnResizeOffscreenFrameBuffer(const gfx::Size& size);
+#if defined(OS_MACOSX)
+ void OnSetWindowSize(const gfx::Size& size);
+ void SwapBuffersCallback();
+#endif
+
// The lifetime of objects of this class is managed by a GpuChannel. The
// GpuChannels destroy all the GpuCommandBufferStubs that they own when they
// are destroyed. So a raw pointer is safe.
@@ -66,6 +73,11 @@
uint32 parent_texture_id_;
int32 route_id_;
+ // The following two fields are used on Mac OS X to identify the window
+ // for the rendering results on the browser side.
+ int32 renderer_id_;
+ int32 render_view_id_;
+
scoped_ptr<gpu::CommandBufferService> command_buffer_;
scoped_ptr<gpu::GPUProcessor> processor_;
« no previous file with comments | « chrome/gpu/gpu_channel.cc ('k') | chrome/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698