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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.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
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 void OnRetireSyncPoint(uint32 sync_point); 192 void OnRetireSyncPoint(uint32 sync_point);
193 bool OnWaitSyncPoint(uint32 sync_point); 193 bool OnWaitSyncPoint(uint32 sync_point);
194 void OnSyncPointRetired(); 194 void OnSyncPointRetired();
195 void OnSignalSyncPoint(uint32 sync_point, uint32 id); 195 void OnSignalSyncPoint(uint32 sync_point, uint32 id);
196 void OnSignalSyncPointAck(uint32 id); 196 void OnSignalSyncPointAck(uint32 id);
197 void OnSignalQuery(uint32 query, uint32 id); 197 void OnSignalQuery(uint32 query, uint32 id);
198 198
199 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback); 199 void OnSetClientHasMemoryAllocationChangedCallback(bool has_callback);
200 200
201 void OnRegisterGpuMemoryBuffer(int32 id, 201 void OnCreateImage(int32 id,
202 gfx::GpuMemoryBufferHandle handle, 202 gfx::GpuMemoryBufferHandle handle,
203 uint32 width, 203 gfx::Size size,
204 uint32 height, 204 gfx::GpuMemoryBuffer::Format format,
205 uint32 internalformat); 205 uint32 internalformat);
206 void OnUnregisterGpuMemoryBuffer(int32 id); 206 void OnDestroyImage(int32 id);
207 207
208 void OnCommandProcessed(); 208 void OnCommandProcessed();
209 void OnParseError(); 209 void OnParseError();
210 void OnCreateStreamTexture( 210 void OnCreateStreamTexture(
211 uint32 texture_id, int32 stream_id, bool* succeeded); 211 uint32 texture_id, int32 stream_id, bool* succeeded);
212 212
213 void ReportState(); 213 void ReportState();
214 214
215 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. 215 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
216 void PutChanged(); 216 void PutChanged();
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 size_t total_gpu_memory_; 278 size_t total_gpu_memory_;
279 scoped_ptr<WaitForCommandState> wait_for_token_; 279 scoped_ptr<WaitForCommandState> wait_for_token_;
280 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 280 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
281 281
282 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 282 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
283 }; 283 };
284 284
285 } // namespace content 285 } // namespace content
286 286
287 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 287 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698