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

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

Issue 558035: [GPU] Get GPU process running on the mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/plugin/webplugin_delegate_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 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <map> 10 #include <map>
(...skipping 26 matching lines...) Expand all
37 virtual gpu::Buffer GetRingBuffer(); 37 virtual gpu::Buffer GetRingBuffer();
38 virtual State GetState(); 38 virtual State GetState();
39 virtual State Flush(int32 put_offset); 39 virtual State Flush(int32 put_offset);
40 virtual void SetGetOffset(int32 get_offset); 40 virtual void SetGetOffset(int32 get_offset);
41 virtual int32 CreateTransferBuffer(size_t size); 41 virtual int32 CreateTransferBuffer(size_t size);
42 virtual void DestroyTransferBuffer(int32 id); 42 virtual void DestroyTransferBuffer(int32 id);
43 virtual gpu::Buffer GetTransferBuffer(int32 handle); 43 virtual gpu::Buffer GetTransferBuffer(int32 handle);
44 virtual void SetToken(int32 token); 44 virtual void SetToken(int32 token);
45 virtual void SetParseError(gpu::error::Error error); 45 virtual void SetParseError(gpu::error::Error error);
46 46
47 #if defined(OS_MACOSX)
48 virtual void SetWindowSize(int32 width, int32 height);
49 #endif
50
47 private: 51 private:
48 // As with the service, the client takes ownership of the ring buffer. 52 // As with the service, the client takes ownership of the ring buffer.
49 int32 size_; 53 int32 size_;
50 scoped_ptr<base::SharedMemory> ring_buffer_; 54 scoped_ptr<base::SharedMemory> ring_buffer_;
51 55
52 // Local cache of id to transfer buffer mapping. 56 // Local cache of id to transfer buffer mapping.
53 typedef std::map<int32, gpu::Buffer> TransferBufferMap; 57 typedef std::map<int32, gpu::Buffer> TransferBufferMap;
54 TransferBufferMap transfer_buffers_; 58 TransferBufferMap transfer_buffers_;
55 59
56 scoped_refptr<PluginChannelHost> channel_; 60 scoped_refptr<PluginChannelHost> channel_;
57 int route_id_; 61 int route_id_;
58 62
59 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 63 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
60 }; 64 };
61 65
62 #endif // ENABLE_GPU 66 #endif // ENABLE_GPU
63 67
64 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_ 68 #endif // CHROME_RENDERER_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/plugin/webplugin_delegate_stub.cc ('k') | chrome/renderer/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698