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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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
« no previous file with comments | « mojo/services/surfaces/surfaces_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 "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 virtual void Flush(int32 put_offset) override; 39 virtual void Flush(int32 put_offset) override;
40 virtual void WaitForTokenInRange(int32 start, int32 end) override; 40 virtual void WaitForTokenInRange(int32 start, int32 end) override;
41 virtual void WaitForGetOffsetInRange(int32 start, int32 end) override; 41 virtual void WaitForGetOffsetInRange(int32 start, int32 end) override;
42 virtual void SetGetBuffer(int32 transfer_buffer_id) override; 42 virtual void SetGetBuffer(int32 transfer_buffer_id) override;
43 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size, 43 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(size_t size,
44 int32* id) override; 44 int32* id) override;
45 virtual void DestroyTransferBuffer(int32 id) override; 45 virtual void DestroyTransferBuffer(int32 id) override;
46 46
47 // gpu::GpuControl implementation: 47 // gpu::GpuControl implementation:
48 virtual gpu::Capabilities GetCapabilities() override; 48 virtual gpu::Capabilities GetCapabilities() override;
49 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 49 virtual int32 CreateImage(ClientBuffer buffer,
50 size_t height, 50 size_t width,
51 unsigned internalformat, 51 size_t height,
52 unsigned usage, 52 unsigned internalformat) override;
53 int32* id) override; 53 virtual void DestroyImage(int32 id) override;
54 virtual void DestroyGpuMemoryBuffer(int32 id) override; 54 virtual int32 CreateGpuMemoryBufferImage(size_t width,
55 size_t height,
56 unsigned internalformat,
57 unsigned usage) override;
55 virtual uint32 InsertSyncPoint() override; 58 virtual uint32 InsertSyncPoint() override;
56 virtual uint32 InsertFutureSyncPoint() override; 59 virtual uint32 InsertFutureSyncPoint() override;
57 virtual void RetireSyncPoint(uint32 sync_point) override; 60 virtual void RetireSyncPoint(uint32 sync_point) override;
58 virtual void SignalSyncPoint(uint32 sync_point, 61 virtual void SignalSyncPoint(uint32 sync_point,
59 const base::Closure& callback) override; 62 const base::Closure& callback) override;
60 virtual void SignalQuery(uint32 query, 63 virtual void SignalQuery(uint32 query,
61 const base::Closure& callback) override; 64 const base::Closure& callback) override;
62 virtual void SetSurfaceVisible(bool visible) override; 65 virtual void SetSurfaceVisible(bool visible) override;
63 virtual uint32 CreateStreamTexture(uint32 texture_id) override; 66 virtual uint32 CreateStreamTexture(uint32 texture_id) override;
64 67
(...skipping 15 matching lines...) Expand all
80 83
81 base::Closure channel_error_callback_; 84 base::Closure channel_error_callback_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 86 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
84 }; 87 };
85 88
86 } // namespace proxy 89 } // namespace proxy
87 } // namespace ppapi 90 } // namespace ppapi
88 91
89 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 92 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « mojo/services/surfaces/surfaces_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