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

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: First draft 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
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 29 matching lines...) Expand all
40 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 40 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
41 int32* id) OVERRIDE; 41 int32* id) OVERRIDE;
42 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 42 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
43 43
44 // gpu::GpuControl implementation: 44 // gpu::GpuControl implementation:
45 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 45 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
46 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 46 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
47 size_t width, 47 size_t width,
48 size_t height, 48 size_t height,
49 unsigned internalformat, 49 unsigned internalformat,
50 gfx::GpuMemoryBuffer::Usage usage,
50 int32* id) OVERRIDE; 51 int32* id) OVERRIDE;
51 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 52 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
52 virtual uint32 InsertSyncPoint() OVERRIDE; 53 virtual uint32 InsertSyncPoint() OVERRIDE;
53 virtual void SignalSyncPoint(uint32 sync_point, 54 virtual void SignalSyncPoint(uint32 sync_point,
54 const base::Closure& callback) OVERRIDE; 55 const base::Closure& callback) OVERRIDE;
55 virtual void SignalQuery(uint32 query, 56 virtual void SignalQuery(uint32 query,
56 const base::Closure& callback) OVERRIDE; 57 const base::Closure& callback) OVERRIDE;
57 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 58 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
58 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) 59 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats)
59 OVERRIDE; 60 OVERRIDE;
(...skipping 11 matching lines...) Expand all
71 72
72 base::Closure channel_error_callback_; 73 base::Closure channel_error_callback_;
73 74
74 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 75 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
75 }; 76 };
76 77
77 } // namespace proxy 78 } // namespace proxy
78 } // namespace ppapi 79 } // namespace ppapi
79 80
80 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 81 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698