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

Side by Side Diff: chrome/renderer/command_buffer_proxy.h

Issue 527009: Removing the dependency of command-buffer client on base/task.h. This file in... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 | « no previous file | 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 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <map> 10 #include <map>
(...skipping 22 matching lines...) Expand all
33 virtual bool Send(IPC::Message* msg); 33 virtual bool Send(IPC::Message* msg);
34 34
35 // CommandBuffer implementation: 35 // CommandBuffer implementation:
36 virtual bool Initialize(int32 size); 36 virtual bool Initialize(int32 size);
37 virtual gpu::Buffer GetRingBuffer(); 37 virtual gpu::Buffer GetRingBuffer();
38 virtual int32 GetSize(); 38 virtual int32 GetSize();
39 virtual int32 SyncOffsets(int32 put_offset); 39 virtual int32 SyncOffsets(int32 put_offset);
40 virtual int32 GetGetOffset(); 40 virtual int32 GetGetOffset();
41 virtual void SetGetOffset(int32 get_offset); 41 virtual void SetGetOffset(int32 get_offset);
42 virtual int32 GetPutOffset(); 42 virtual int32 GetPutOffset();
43 virtual void SetPutOffsetChangeCallback(Callback0::Type* callback);
44 virtual int32 CreateTransferBuffer(size_t size); 43 virtual int32 CreateTransferBuffer(size_t size);
45 virtual void DestroyTransferBuffer(int32 id); 44 virtual void DestroyTransferBuffer(int32 id);
46 virtual gpu::Buffer GetTransferBuffer(int32 handle); 45 virtual gpu::Buffer GetTransferBuffer(int32 handle);
47 virtual int32 GetToken(); 46 virtual int32 GetToken();
48 virtual void SetToken(int32 token); 47 virtual void SetToken(int32 token);
49 virtual int32 ResetParseError(); 48 virtual int32 ResetParseError();
50 virtual void SetParseError(int32 parse_error); 49 virtual void SetParseError(int32 parse_error);
51 virtual bool GetErrorStatus(); 50 virtual bool GetErrorStatus();
52 virtual void RaiseErrorStatus(); 51 virtual void RaiseErrorStatus();
53 52
54 private: 53 private:
55 // As with the service, the client takes ownership of the ring buffer. 54 // As with the service, the client takes ownership of the ring buffer.
56 int32 size_; 55 int32 size_;
57 scoped_ptr<base::SharedMemory> ring_buffer_; 56 scoped_ptr<base::SharedMemory> ring_buffer_;
58 57
59 // Local cache of id to transfer buffer mapping. 58 // Local cache of id to transfer buffer mapping.
60 typedef std::map<int32, gpu::Buffer> TransferBufferMap; 59 typedef std::map<int32, gpu::Buffer> TransferBufferMap;
61 TransferBufferMap transfer_buffers_; 60 TransferBufferMap transfer_buffers_;
62 61
63 scoped_refptr<PluginChannelHost> channel_; 62 scoped_refptr<PluginChannelHost> channel_;
64 int route_id_; 63 int route_id_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 65 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
67 }; 66 };
68 67
69 #endif // ENABLE_GPU 68 #endif // ENABLE_GPU
70 69
71 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 70 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698