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

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

Issue 1414793018: Revert of Converted video frame and image callbacks to use new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 26 matching lines...) Expand all
37 struct SyncToken; 37 struct SyncToken;
38 class SyncPointClient; 38 class SyncPointClient;
39 class SyncPointManager; 39 class SyncPointManager;
40 class ValueStateMap; 40 class ValueStateMap;
41 namespace gles2 { 41 namespace gles2 {
42 class MailboxManager; 42 class MailboxManager;
43 class SubscriptionRefSet; 43 class SubscriptionRefSet;
44 } 44 }
45 } 45 }
46 46
47 struct GpuCommandBufferMsg_CreateImage_Params;
48
49 namespace content { 47 namespace content {
50 48
51 class GpuChannel; 49 class GpuChannel;
52 class GpuVideoDecodeAccelerator; 50 class GpuVideoDecodeAccelerator;
53 class GpuVideoEncodeAccelerator; 51 class GpuVideoEncodeAccelerator;
54 class GpuWatchdog; 52 class GpuWatchdog;
55 struct WaitForCommandState; 53 struct WaitForCommandState;
56 54
57 class GpuCommandBufferStub 55 class GpuCommandBufferStub
58 : public GpuMemoryManagerClient, 56 : public GpuMemoryManagerClient,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void OnSignalQuery(uint32 query, uint32 id); 207 void OnSignalQuery(uint32 query, uint32 id);
210 208
211 void OnFenceSyncRelease(uint64_t release); 209 void OnFenceSyncRelease(uint64_t release);
212 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id, 210 bool OnWaitFenceSync(gpu::CommandBufferNamespace namespace_id,
213 uint64_t command_buffer_id, 211 uint64_t command_buffer_id,
214 uint64_t release); 212 uint64_t release);
215 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id, 213 void OnWaitFenceSyncCompleted(gpu::CommandBufferNamespace namespace_id,
216 uint64_t command_buffer_id, 214 uint64_t command_buffer_id,
217 uint64_t release); 215 uint64_t release);
218 216
219 void OnCreateImage(const GpuCommandBufferMsg_CreateImage_Params& params); 217 void OnCreateImage(int32 id,
218 gfx::GpuMemoryBufferHandle handle,
219 gfx::Size size,
220 gfx::BufferFormat format,
221 uint32 internalformat);
220 void OnDestroyImage(int32 id); 222 void OnDestroyImage(int32 id);
221 void OnCreateStreamTexture(uint32 texture_id, 223 void OnCreateStreamTexture(uint32 texture_id,
222 int32 stream_id, 224 int32 stream_id,
223 bool* succeeded); 225 bool* succeeded);
224 226
225 void OnCommandProcessed(); 227 void OnCommandProcessed();
226 void OnParseError(); 228 void OnParseError();
227 void OnSchedulingChanged(bool scheduled); 229 void OnSchedulingChanged(bool scheduled);
228 230
229 void ReportState(); 231 void ReportState();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 size_t total_gpu_memory_; 304 size_t total_gpu_memory_;
303 scoped_ptr<WaitForCommandState> wait_for_token_; 305 scoped_ptr<WaitForCommandState> wait_for_token_;
304 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 306 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
305 307
306 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 308 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
307 }; 309 };
308 310
309 } // namespace content 311 } // namespace content
310 312
311 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 313 #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