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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] gpu: Reuse transfer buffers more aggresively Created 6 years, 11 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 "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 23 matching lines...) Expand all
34 virtual State GetLastState() OVERRIDE; 34 virtual State GetLastState() OVERRIDE;
35 virtual int32 GetLastToken() OVERRIDE; 35 virtual int32 GetLastToken() OVERRIDE;
36 virtual void Flush(int32 put_offset) OVERRIDE; 36 virtual void Flush(int32 put_offset) OVERRIDE;
37 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; 37 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE;
38 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE; 38 virtual void SetGetBuffer(int32 transfer_buffer_id) OVERRIDE;
39 virtual void SetGetOffset(int32 get_offset) OVERRIDE; 39 virtual void SetGetOffset(int32 get_offset) OVERRIDE;
40 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE; 40 virtual gpu::Buffer CreateTransferBuffer(size_t size, int32* id) OVERRIDE;
41 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 41 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
42 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; 42 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE;
43 virtual void SetToken(int32 token) OVERRIDE; 43 virtual void SetToken(int32 token) OVERRIDE;
44 virtual void SetSerial(uint32 serial) OVERRIDE;
44 virtual void SetParseError(gpu::error::Error error) OVERRIDE; 45 virtual void SetParseError(gpu::error::Error error) OVERRIDE;
45 virtual void SetContextLostReason(gpu::error::ContextLostReason reason) 46 virtual void SetContextLostReason(gpu::error::ContextLostReason reason)
46 OVERRIDE; 47 OVERRIDE;
47 48
48 // gpu::GpuControl implementation: 49 // gpu::GpuControl implementation:
49 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 50 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
50 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 51 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
51 size_t width, 52 size_t width,
52 size_t height, 53 size_t height,
53 unsigned internalformat, 54 unsigned internalformat,
(...skipping 25 matching lines...) Expand all
79 80
80 base::Closure channel_error_callback_; 81 base::Closure channel_error_callback_;
81 82
82 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 83 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
83 }; 84 };
84 85
85 } // namespace proxy 86 } // namespace proxy
86 } // namespace ppapi 87 } // namespace ppapi
87 88
88 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 89 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698