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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.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 CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual int32 GetLastToken() OVERRIDE; 84 virtual int32 GetLastToken() OVERRIDE;
85 virtual void Flush(int32 put_offset) OVERRIDE; 85 virtual void Flush(int32 put_offset) OVERRIDE;
86 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE; 86 virtual State FlushSync(int32 put_offset, int32 last_known_get) OVERRIDE;
87 virtual void SetGetBuffer(int32 shm_id) OVERRIDE; 87 virtual void SetGetBuffer(int32 shm_id) OVERRIDE;
88 virtual void SetGetOffset(int32 get_offset) OVERRIDE; 88 virtual void SetGetOffset(int32 get_offset) OVERRIDE;
89 virtual gpu::Buffer CreateTransferBuffer(size_t size, 89 virtual gpu::Buffer CreateTransferBuffer(size_t size,
90 int32* id) OVERRIDE; 90 int32* id) OVERRIDE;
91 virtual void DestroyTransferBuffer(int32 id) OVERRIDE; 91 virtual void DestroyTransferBuffer(int32 id) OVERRIDE;
92 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE; 92 virtual gpu::Buffer GetTransferBuffer(int32 id) OVERRIDE;
93 virtual void SetToken(int32 token) OVERRIDE; 93 virtual void SetToken(int32 token) OVERRIDE;
94 virtual void SetSerial(uint32 serial) OVERRIDE;
94 virtual void SetParseError(gpu::error::Error error) OVERRIDE; 95 virtual void SetParseError(gpu::error::Error error) OVERRIDE;
95 virtual void SetContextLostReason( 96 virtual void SetContextLostReason(
96 gpu::error::ContextLostReason reason) OVERRIDE; 97 gpu::error::ContextLostReason reason) OVERRIDE;
97 98
98 // gpu::GpuControl implementation: 99 // gpu::GpuControl implementation:
99 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 100 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
100 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer( 101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(
101 size_t width, 102 size_t width,
102 size_t height, 103 size_t height,
103 unsigned internalformat, 104 unsigned internalformat,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 GpuMemoryBufferMap gpu_memory_buffers_; 206 GpuMemoryBufferMap gpu_memory_buffers_;
206 207
207 gpu::Capabilities capabilities_; 208 gpu::Capabilities capabilities_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl); 210 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxyImpl);
210 }; 211 };
211 212
212 } // namespace content 213 } // namespace content
213 214
214 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_ 215 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy_impl.cc » ('j') | gpu/command_buffer/client/buffer_tracker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698