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

Side by Side Diff: chrome/renderer/command_buffer_proxy.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/plugin/command_buffer_stub.cc ('k') | chrome/renderer/command_buffer_proxy.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_RENDERER_COMMAND_BUFFER_PROXY_H_ 5 #ifndef CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 6 #define CHROME_RENDERER_COMMAND_BUFFER_PROXY_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 ~CommandBufferProxy(); 38 virtual ~CommandBufferProxy();
39 39
40 // IPC::Channel::Listener implementation: 40 // IPC::Channel::Listener implementation:
41 virtual bool OnMessageReceived(const IPC::Message& message); 41 virtual bool OnMessageReceived(const IPC::Message& message);
42 virtual void OnChannelError(); 42 virtual void OnChannelError();
43 43
44 int route_id() const { return route_id_; } 44 int route_id() const { return route_id_; }
45 45
46 // CommandBuffer implementation: 46 // CommandBuffer implementation:
47 virtual bool Initialize(int32 size); 47 virtual bool Initialize(int32 size);
48 virtual bool Initialize(base::SharedMemory* buffer, int32 size);
48 virtual gpu::Buffer GetRingBuffer(); 49 virtual gpu::Buffer GetRingBuffer();
49 virtual State GetState(); 50 virtual State GetState();
50 virtual void Flush(int32 put_offset); 51 virtual void Flush(int32 put_offset);
51 virtual State FlushSync(int32 put_offset); 52 virtual State FlushSync(int32 put_offset);
52 virtual void SetGetOffset(int32 get_offset); 53 virtual void SetGetOffset(int32 get_offset);
53 virtual int32 CreateTransferBuffer(size_t size); 54 virtual int32 CreateTransferBuffer(size_t size);
54 virtual int32 RegisterTransferBuffer(base::SharedMemory* shared_memory, 55 virtual int32 RegisterTransferBuffer(base::SharedMemory* shared_memory,
55 size_t size); 56 size_t size);
56 virtual void DestroyTransferBuffer(int32 id); 57 virtual void DestroyTransferBuffer(int32 id);
57 virtual gpu::Buffer GetTransferBuffer(int32 handle); 58 virtual gpu::Buffer GetTransferBuffer(int32 handle);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 scoped_ptr<Callback0::Type> swap_buffers_callback_; 123 scoped_ptr<Callback0::Type> swap_buffers_callback_;
123 scoped_ptr<Callback0::Type> channel_error_callback_; 124 scoped_ptr<Callback0::Type> channel_error_callback_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 126 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
126 }; 127 };
127 128
128 #endif // ENABLE_GPU 129 #endif // ENABLE_GPU
129 130
130 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 131 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698