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

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

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 years, 7 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 | « mojo/services/gles2/command_buffer_impl.cc ('k') | ppapi/proxy/ppapi_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) 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/containers/hash_tables.h" 9 #include "base/containers/hash_tables.h"
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 12 matching lines...) Expand all
23 23
24 class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer, 24 class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public gpu::CommandBuffer,
25 public gpu::GpuControl { 25 public gpu::GpuControl {
26 public: 26 public:
27 PpapiCommandBufferProxy(const HostResource& resource, 27 PpapiCommandBufferProxy(const HostResource& resource,
28 ProxyChannel* channel); 28 ProxyChannel* channel);
29 virtual ~PpapiCommandBufferProxy(); 29 virtual ~PpapiCommandBufferProxy();
30 30
31 // gpu::CommandBuffer implementation: 31 // gpu::CommandBuffer implementation:
32 virtual bool Initialize() OVERRIDE; 32 virtual bool Initialize() OVERRIDE;
33 virtual State GetState() OVERRIDE;
34 virtual State GetLastState() OVERRIDE; 33 virtual State GetLastState() OVERRIDE;
35 virtual int32 GetLastToken() OVERRIDE; 34 virtual int32 GetLastToken() OVERRIDE;
36 virtual void Flush(int32 put_offset) OVERRIDE; 35 virtual void Flush(int32 put_offset) OVERRIDE;
37 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE; 36 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE;
38 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE; 37 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE;
39 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE; 38 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE;
40 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
41 int32* id) OVERRIDE; 40 int32* id) OVERRIDE;
42 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 41 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
43 42
(...skipping 27 matching lines...) Expand all
71 70
72 base::Closure channel_error_callback_; 71 base::Closure channel_error_callback_;
73 72
74 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 73 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
75 }; 74 };
76 75
77 } // namespace proxy 76 } // namespace proxy
78 } // namespace ppapi 77 } // namespace ppapi
79 78
80 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 79 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « mojo/services/gles2/command_buffer_impl.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698