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

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

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 5 years 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
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.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 <stddef.h>
9 #include <stdint.h>
10
8 #include "base/callback.h" 11 #include "base/callback.h"
9 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
11 #include "gpu/command_buffer/client/gpu_control.h" 15 #include "gpu/command_buffer/client/gpu_control.h"
12 #include "gpu/command_buffer/common/command_buffer.h" 16 #include "gpu/command_buffer/common/command_buffer.h"
13 #include "gpu/command_buffer/common/command_buffer_shared.h" 17 #include "gpu/command_buffer/common/command_buffer_shared.h"
14 #include "ppapi/proxy/plugin_dispatcher.h" 18 #include "ppapi/proxy/plugin_dispatcher.h"
15 #include "ppapi/proxy/ppapi_proxy_export.h" 19 #include "ppapi/proxy/ppapi_proxy_export.h"
16 #include "ppapi/shared_impl/host_resource.h" 20 #include "ppapi/shared_impl/host_resource.h"
17 21
18 namespace IPC { 22 namespace IPC {
19 class Message; 23 class Message;
(...skipping 10 matching lines...) Expand all
30 PpapiCommandBufferProxy(const HostResource& resource, 34 PpapiCommandBufferProxy(const HostResource& resource,
31 PluginDispatcher* dispatcher, 35 PluginDispatcher* dispatcher,
32 const gpu::Capabilities& capabilities, 36 const gpu::Capabilities& capabilities,
33 const SerializedHandle& shared_state, 37 const SerializedHandle& shared_state,
34 uint64_t command_buffer_id); 38 uint64_t command_buffer_id);
35 ~PpapiCommandBufferProxy() override; 39 ~PpapiCommandBufferProxy() override;
36 40
37 // gpu::CommandBuffer implementation: 41 // gpu::CommandBuffer implementation:
38 bool Initialize() override; 42 bool Initialize() override;
39 State GetLastState() override; 43 State GetLastState() override;
40 int32 GetLastToken() override; 44 int32_t GetLastToken() override;
41 void Flush(int32 put_offset) override; 45 void Flush(int32_t put_offset) override;
42 void OrderingBarrier(int32 put_offset) override; 46 void OrderingBarrier(int32_t put_offset) override;
43 void WaitForTokenInRange(int32 start, int32 end) override; 47 void WaitForTokenInRange(int32_t start, int32_t end) override;
44 void WaitForGetOffsetInRange(int32 start, int32 end) override; 48 void WaitForGetOffsetInRange(int32_t start, int32_t end) override;
45 void SetGetBuffer(int32 transfer_buffer_id) override; 49 void SetGetBuffer(int32_t transfer_buffer_id) override;
46 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 50 scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
47 int32* id) override; 51 int32_t* id) override;
48 void DestroyTransferBuffer(int32 id) override; 52 void DestroyTransferBuffer(int32_t id) override;
49 53
50 // gpu::GpuControl implementation: 54 // gpu::GpuControl implementation:
51 gpu::Capabilities GetCapabilities() override; 55 gpu::Capabilities GetCapabilities() override;
52 int32 CreateImage(ClientBuffer buffer, 56 int32_t CreateImage(ClientBuffer buffer,
53 size_t width, 57 size_t width,
54 size_t height, 58 size_t height,
55 unsigned internalformat) override; 59 unsigned internalformat) override;
56 void DestroyImage(int32 id) override; 60 void DestroyImage(int32_t id) override;
57 int32 CreateGpuMemoryBufferImage(size_t width, 61 int32_t CreateGpuMemoryBufferImage(size_t width,
58 size_t height, 62 size_t height,
59 unsigned internalformat, 63 unsigned internalformat,
60 unsigned usage) override; 64 unsigned usage) override;
61 uint32 InsertSyncPoint() override; 65 uint32_t InsertSyncPoint() override;
62 uint32 InsertFutureSyncPoint() override; 66 uint32_t InsertFutureSyncPoint() override;
63 void RetireSyncPoint(uint32 sync_point) override; 67 void RetireSyncPoint(uint32_t sync_point) override;
64 void SignalSyncPoint(uint32 sync_point, 68 void SignalSyncPoint(uint32_t sync_point,
65 const base::Closure& callback) override; 69 const base::Closure& callback) override;
66 void SignalQuery(uint32 query, const base::Closure& callback) override; 70 void SignalQuery(uint32_t query, const base::Closure& callback) override;
67 void SetLock(base::Lock*) override; 71 void SetLock(base::Lock*) override;
68 bool IsGpuChannelLost() override; 72 bool IsGpuChannelLost() override;
69 gpu::CommandBufferNamespace GetNamespaceID() const override; 73 gpu::CommandBufferNamespace GetNamespaceID() const override;
70 uint64_t GetCommandBufferID() const override; 74 uint64_t GetCommandBufferID() const override;
71 uint64_t GenerateFenceSyncRelease() override; 75 uint64_t GenerateFenceSyncRelease() override;
72 bool IsFenceSyncRelease(uint64_t release) override; 76 bool IsFenceSyncRelease(uint64_t release) override;
73 bool IsFenceSyncFlushed(uint64_t release) override; 77 bool IsFenceSyncFlushed(uint64_t release) override;
74 bool IsFenceSyncFlushReceived(uint64_t release) override; 78 bool IsFenceSyncFlushReceived(uint64_t release) override;
75 void SignalSyncToken(const gpu::SyncToken& sync_token, 79 void SignalSyncToken(const gpu::SyncToken& sync_token,
76 const base::Closure& callback) override; 80 const base::Closure& callback) override;
(...skipping 29 matching lines...) Expand all
106 uint64_t pending_fence_sync_release_; 110 uint64_t pending_fence_sync_release_;
107 uint64_t flushed_fence_sync_release_; 111 uint64_t flushed_fence_sync_release_;
108 112
109 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 113 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
110 }; 114 };
111 115
112 } // namespace proxy 116 } // namespace proxy
113 } // namespace ppapi 117 } // namespace ppapi
114 118
115 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 119 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_tracker_unittest.cc ('k') | ppapi/proxy/ppapi_command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698