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

Side by Side Diff: chrome/gpu/gpu_command_buffer_stub.h

Issue 6557006: Moved creation of GPU transfer buffers into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #endif // defined(OS_MACOSX) 67 #endif // defined(OS_MACOSX)
68 68
69 private: 69 private:
70 // Message handlers: 70 // Message handlers:
71 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); 71 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer);
72 void OnGetState(gpu::CommandBuffer::State* state); 72 void OnGetState(gpu::CommandBuffer::State* state);
73 void OnAsyncGetState(); 73 void OnAsyncGetState();
74 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); 74 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state);
75 void OnAsyncFlush(int32 put_offset); 75 void OnAsyncFlush(int32 put_offset);
76 void OnCreateTransferBuffer(int32 size, int32* id); 76 void OnCreateTransferBuffer(int32 size, int32* id);
77 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer,
78 size_t size,
79 int32* id);
77 void OnDestroyTransferBuffer(int32 id); 80 void OnDestroyTransferBuffer(int32 id);
78 void OnGetTransferBuffer(int32 id, 81 void OnGetTransferBuffer(int32 id,
79 base::SharedMemoryHandle* transfer_buffer, 82 base::SharedMemoryHandle* transfer_buffer,
80 uint32* size); 83 uint32* size);
81 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); 84 void OnResizeOffscreenFrameBuffer(const gfx::Size& size);
82 85
83 void OnSwapBuffers(); 86 void OnSwapBuffers();
84 87
85 #if defined(OS_MACOSX) 88 #if defined(OS_MACOSX)
86 void OnSetWindowSize(const gfx::Size& size); 89 void OnSetWindowSize(const gfx::Size& size);
(...skipping 30 matching lines...) Expand all
117 120
118 scoped_ptr<gpu::CommandBufferService> command_buffer_; 121 scoped_ptr<gpu::CommandBufferService> command_buffer_;
119 scoped_ptr<gpu::GPUProcessor> processor_; 122 scoped_ptr<gpu::GPUProcessor> processor_;
120 123
121 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 124 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
122 }; 125 };
123 126
124 #endif // defined(ENABLE_GPU) 127 #endif // defined(ENABLE_GPU)
125 128
126 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ 129 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698