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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/gles2/command_buffer_client_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/client/gpu_control.h" 10 #include "gpu/command_buffer/client/gpu_control.h"
(...skipping 24 matching lines...) Expand all
35 virtual void Flush(int32 put_offset) OVERRIDE; 35 virtual void Flush(int32 put_offset) OVERRIDE;
36 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE; 36 virtual void WaitForTokenInRange(int32 start, int32 end) OVERRIDE;
37 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE; 37 virtual void WaitForGetOffsetInRange(int32 start, int32 end) OVERRIDE;
38 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE; 38 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE;
39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
40 int32* id) OVERRIDE; 40 int32* id) OVERRIDE;
41 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 41 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
42 42
43 // gpu::GpuControl implementation: 43 // gpu::GpuControl implementation:
44 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 44 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
45 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 45 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
46 size_t width, 46 size_t height,
47 size_t height, 47 unsigned internalformat,
48 unsigned internalformat, 48 unsigned usage,
49 int32* id) OVERRIDE; 49 int32* id) OVERRIDE;
50 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 50 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
51 virtual uint32 InsertSyncPoint() OVERRIDE; 51 virtual uint32 InsertSyncPoint() OVERRIDE;
52 virtual void SignalSyncPoint(uint32 sync_point, 52 virtual void SignalSyncPoint(uint32 sync_point,
53 const base::Closure& callback) OVERRIDE; 53 const base::Closure& callback) OVERRIDE;
54 virtual void SignalQuery(uint32 query, 54 virtual void SignalQuery(uint32 query,
55 const base::Closure& callback) OVERRIDE; 55 const base::Closure& callback) OVERRIDE;
56 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 56 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
57 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 57 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
58 OVERRIDE; 58 OVERRIDE;
59 virtual void Echo(const base::Closure& callback) OVERRIDE; 59 virtual void Echo(const base::Closure& callback) OVERRIDE;
(...skipping 10 matching lines...) Expand all
70 70
71 base::Closure channel_error_callback_; 71 base::Closure channel_error_callback_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 73 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
74 }; 74 };
75 75
76 } // namespace proxy 76 } // namespace proxy
77 } // namespace ppapi 77 } // namespace ppapi
78 78
79 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 79 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_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