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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 years, 3 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
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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 27 matching lines...) Expand all
38 State GetLastState() override; 38 State GetLastState() override;
39 int32 GetLastToken() override; 39 int32 GetLastToken() override;
40 void Flush(int32 put_offset) override; 40 void Flush(int32 put_offset) override;
41 void OrderingBarrier(int32 put_offset) override; 41 void OrderingBarrier(int32 put_offset) override;
42 void WaitForTokenInRange(int32 start, int32 end) override; 42 void WaitForTokenInRange(int32 start, int32 end) override;
43 void WaitForGetOffsetInRange(int32 start, int32 end) override; 43 void WaitForGetOffsetInRange(int32 start, int32 end) override;
44 void SetGetBuffer(int32 transfer_buffer_id) override; 44 void SetGetBuffer(int32 transfer_buffer_id) override;
45 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 45 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
46 int32* id) override; 46 int32* id) override;
47 void DestroyTransferBuffer(int32 id) override; 47 void DestroyTransferBuffer(int32 id) override;
48 void GetRouteInformation(int* channel_id, uint32_t* route_id) override;
48 49
49 // gpu::GpuControl implementation: 50 // gpu::GpuControl implementation:
50 gpu::Capabilities GetCapabilities() override; 51 gpu::Capabilities GetCapabilities() override;
51 int32 CreateImage(ClientBuffer buffer, 52 int32 CreateImage(ClientBuffer buffer,
52 size_t width, 53 size_t width,
53 size_t height, 54 size_t height,
54 unsigned internalformat) override; 55 unsigned internalformat) override;
55 void DestroyImage(int32 id) override; 56 void DestroyImage(int32 id) override;
56 int32 CreateGpuMemoryBufferImage(size_t width, 57 int32 CreateGpuMemoryBufferImage(size_t width,
57 size_t height, 58 size_t height,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 92
92 InstanceData::FlushInfo *flush_info_; 93 InstanceData::FlushInfo *flush_info_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 95 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
95 }; 96 };
96 97
97 } // namespace proxy 98 } // namespace proxy
98 } // namespace ppapi 99 } // namespace ppapi
99 100
100 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 101 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698