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

Side by Side Diff: chrome/plugin/command_buffer_stub.h

Issue 6588029: Moved creation of GPU command buffer shared memory into the browser process.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/gpu/gpu_command_buffer_stub.cc ('k') | chrome/plugin/command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_PLUGIN_COMMAND_BUFFER_STUB_H_ 5 #ifndef CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_
6 #define CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ 6 #define CHROME_PLUGIN_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 27 matching lines...) Expand all
38 virtual bool Send(IPC::Message* msg); 38 virtual bool Send(IPC::Message* msg);
39 39
40 int route_id() const { return route_id_; } 40 int route_id() const { return route_id_; }
41 41
42 // Notify the client that it must repaint due to the window becoming invalid 42 // Notify the client that it must repaint due to the window becoming invalid
43 // or a lost context. 43 // or a lost context.
44 void NotifyRepaint(); 44 void NotifyRepaint();
45 45
46 private: 46 private:
47 // Message handlers: 47 // Message handlers:
48 void OnInitialize(int32 size, base::SharedMemoryHandle* ring_buffer); 48 void OnInitialize(base::SharedMemoryHandle ring_buffer,
49 int32 size,
50 bool* result);
49 void OnGetState(gpu::CommandBuffer::State* state); 51 void OnGetState(gpu::CommandBuffer::State* state);
50 void OnAsyncGetState(); 52 void OnAsyncGetState();
51 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state); 53 void OnFlush(int32 put_offset, gpu::CommandBuffer::State* state);
52 void OnAsyncFlush(int32 put_offset); 54 void OnAsyncFlush(int32 put_offset);
53 void OnCreateTransferBuffer(int32 size, int32* id); 55 void OnCreateTransferBuffer(int32 size, int32* id);
54 void OnDestroyTransferBuffer(int32 id); 56 void OnDestroyTransferBuffer(int32 id);
55 void OnGetTransferBuffer(int32 id, 57 void OnGetTransferBuffer(int32 id,
56 base::SharedMemoryHandle* transfer_buffer, 58 base::SharedMemoryHandle* transfer_buffer,
57 uint32* size); 59 uint32* size);
58 60
(...skipping 14 matching lines...) Expand all
73 int plugin_host_route_id_; 75 int plugin_host_route_id_;
74 gfx::PluginWindowHandle window_; 76 gfx::PluginWindowHandle window_;
75 int route_id_; 77 int route_id_;
76 scoped_ptr<gpu::CommandBufferService> command_buffer_; 78 scoped_ptr<gpu::CommandBufferService> command_buffer_;
77 scoped_ptr<gpu::GPUProcessor> processor_; 79 scoped_ptr<gpu::GPUProcessor> processor_;
78 }; 80 };
79 81
80 #endif // ENABLE_GPU 82 #endif // ENABLE_GPU
81 83
82 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_ 84 #endif // CHROME_PLUGIN_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_command_buffer_stub.cc ('k') | chrome/plugin/command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698