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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use webglid where approperiate Created 7 years, 6 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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void OnSetSurfaceVisible(bool visible); 168 void OnSetSurfaceVisible(bool visible);
169 169
170 void OnDiscardBackbuffer(); 170 void OnDiscardBackbuffer();
171 void OnEnsureBackbuffer(); 171 void OnEnsureBackbuffer();
172 172
173 void OnRetireSyncPoint(uint32 sync_point); 173 void OnRetireSyncPoint(uint32 sync_point);
174 bool OnWaitSyncPoint(uint32 sync_point); 174 bool OnWaitSyncPoint(uint32 sync_point);
175 void OnSyncPointRetired(); 175 void OnSyncPointRetired();
176 void OnSignalSyncPoint(uint32 sync_point, uint32 id); 176 void OnSignalSyncPoint(uint32 sync_point, uint32 id);
177 void OnSignalSyncPointAck(uint32 id); 177 void OnSignalSyncPointAck(uint32 id);
178 void OnSignalQuery(uint32 query, uint32 id);
178 179
179 void OnReceivedClientManagedMemoryStats(const GpuManagedMemoryStats& stats); 180 void OnReceivedClientManagedMemoryStats(const GpuManagedMemoryStats& stats);
180 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); 181 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
181 182
182 void OnCommandProcessed(); 183 void OnCommandProcessed();
183 void OnParseError(); 184 void OnParseError();
184 void OnSetLatencyInfo(const ui::LatencyInfo& latency_info); 185 void OnSetLatencyInfo(const ui::LatencyInfo& latency_info);
185 186
186 void ReportState(); 187 void ReportState();
187 188
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 size_t active_url_hash_; 248 size_t active_url_hash_;
248 249
249 size_t total_gpu_memory_; 250 size_t total_gpu_memory_;
250 251
251 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 252 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
252 }; 253 };
253 254
254 } // namespace content 255 } // namespace content
255 256
256 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 257 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698