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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.h

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void Flush(int32 put_offset); 44 virtual void Flush(int32 put_offset);
45 virtual State FlushSync(int32 put_offset, int32 last_known_get); 45 virtual State FlushSync(int32 put_offset, int32 last_known_get);
46 virtual void SetGetBuffer(int32 transfer_buffer_id); 46 virtual void SetGetBuffer(int32 transfer_buffer_id);
47 virtual void SetGetOffset(int32 get_offset); 47 virtual void SetGetOffset(int32 get_offset);
48 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id); 48 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id);
49 virtual void DestroyTransferBuffer(int32 id); 49 virtual void DestroyTransferBuffer(int32 id);
50 virtual gpu::Buffer GetTransferBuffer(int32 id); 50 virtual gpu::Buffer GetTransferBuffer(int32 id);
51 virtual void SetToken(int32 token); 51 virtual void SetToken(int32 token);
52 virtual void SetParseError(gpu::error::Error error); 52 virtual void SetParseError(gpu::error::Error error);
53 virtual void SetContextLostReason(gpu::error::ContextLostReason reason); 53 virtual void SetContextLostReason(gpu::error::ContextLostReason reason);
54 virtual uint32 InsertSyncPoint();
54 55
55 private: 56 private:
56 bool Send(IPC::Message* msg); 57 bool Send(IPC::Message* msg);
57 void UpdateState(const gpu::CommandBuffer::State& state, bool success); 58 void UpdateState(const gpu::CommandBuffer::State& state, bool success);
58 59
59 typedef base::hash_map<int32, gpu::Buffer> TransferBufferMap; 60 typedef base::hash_map<int32, gpu::Buffer> TransferBufferMap;
60 TransferBufferMap transfer_buffers_; 61 TransferBufferMap transfer_buffers_;
61 62
62 State last_state_; 63 State last_state_;
63 64
64 HostResource resource_; 65 HostResource resource_;
65 ProxyChannel* channel_; 66 ProxyChannel* channel_;
66 67
67 base::Closure channel_error_callback_; 68 base::Closure channel_error_callback_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 70 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
70 }; 71 };
71 72
72 } // namespace proxy 73 } // namespace proxy
73 } // namespace ppapi 74 } // namespace ppapi
74 75
75 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 76 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698