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

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

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced struct with explicit profile parameter. Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void OnCreateTransferBuffer(int32 size, 107 void OnCreateTransferBuffer(int32 size,
108 int32 id_request, 108 int32 id_request,
109 IPC::Message* reply_message); 109 IPC::Message* reply_message);
110 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer, 110 void OnRegisterTransferBuffer(base::SharedMemoryHandle transfer_buffer,
111 size_t size, 111 size_t size,
112 int32 id_request, 112 int32 id_request,
113 IPC::Message* reply_message); 113 IPC::Message* reply_message);
114 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message); 114 void OnDestroyTransferBuffer(int32 id, IPC::Message* reply_message);
115 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 115 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
116 116
117 void OnCreateVideoDecoder(const std::vector<int32>& configs, 117 void OnCreateVideoDecoder(
118 IPC::Message* reply_message); 118 media::VideoDecodeAccelerator::Profile profile,
119 IPC::Message* reply_message);
119 void OnDestroyVideoDecoder(int32 decoder_route_id); 120 void OnDestroyVideoDecoder(int32 decoder_route_id);
120 121
121 #if defined(OS_MACOSX) 122 #if defined(OS_MACOSX)
122 void OnSwapBuffers(); 123 void OnSwapBuffers();
123 #endif 124 #endif
124 125
125 void OnCommandProcessed(); 126 void OnCommandProcessed();
126 void OnParseError(); 127 void OnParseError();
127 128
128 void OnResize(gfx::Size size); 129 void OnResize(gfx::Size size);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Zero or more video decoders owned by this stub, keyed by their 165 // Zero or more video decoders owned by this stub, keyed by their
165 // decoder_route_id. 166 // decoder_route_id.
166 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 167 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
167 168
168 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 169 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
169 }; 170 };
170 171
171 #endif // defined(ENABLE_GPU) 172 #endif // defined(ENABLE_GPU)
172 173
173 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 174 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698