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

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 7260008: Implement proper synchronization between HW video decode IPC and CommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 5 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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_old.h" 10 #include "base/callback_old.h"
(...skipping 28 matching lines...) Expand all
39 class FileSystemCallbackDispatcher; 39 class FileSystemCallbackDispatcher;
40 } 40 }
41 41
42 namespace gfx { 42 namespace gfx {
43 class Point; 43 class Point;
44 class Rect; 44 class Rect;
45 } 45 }
46 46
47 namespace gpu { 47 namespace gpu {
48 class CommandBuffer; 48 class CommandBuffer;
49 class CommandBufferHelper;
49 } 50 }
50 51
51 namespace ppapi { 52 namespace ppapi {
52 struct Preferences; 53 struct Preferences;
53 } 54 }
54 55
55 namespace skia { 56 namespace skia {
56 class PlatformCanvas; 57 class PlatformCanvas;
57 } 58 }
58 59
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 257
257 // The caller will own the pointer returned from this. 258 // The caller will own the pointer returned from this.
258 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; 259 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0;
259 260
260 // The caller will own the pointer returned from this. 261 // The caller will own the pointer returned from this.
261 virtual PlatformContext3D* CreateContext3D() = 0; 262 virtual PlatformContext3D* CreateContext3D() = 0;
262 263
263 // The caller will own the pointer returned from this. 264 // The caller will own the pointer returned from this.
264 virtual PlatformVideoDecoder* CreateVideoDecoder( 265 virtual PlatformVideoDecoder* CreateVideoDecoder(
265 media::VideoDecodeAccelerator::Client* client, 266 media::VideoDecodeAccelerator::Client* client,
266 int command_buffer_route_id) = 0; 267 int32 command_buffer_route_id,
268 gpu::CommandBufferHelper* cmd_buffer_helper) = 0;
267 269
268 // The caller is responsible for calling Shutdown() on the returned pointer 270 // The caller is responsible for calling Shutdown() on the returned pointer
269 // to clean up the corresponding resources allocated during this call. 271 // to clean up the corresponding resources allocated during this call.
270 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, 272 virtual PlatformAudio* CreateAudio(uint32_t sample_rate,
271 uint32_t sample_count, 273 uint32_t sample_count,
272 PlatformAudio::Client* client) = 0; 274 PlatformAudio::Client* client) = 0;
273 275
274 // A pointer is returned immediately, but it is not ready to be used until 276 // A pointer is returned immediately, but it is not ready to be used until
275 // BrokerConnected has been called. 277 // BrokerConnected has been called.
276 // The caller is responsible for calling Release() on the returned pointer 278 // The caller is responsible for calling Release() on the returned pointer
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
413 415
414 // Returns the current preferences. 416 // Returns the current preferences.
415 virtual ::ppapi::Preferences GetPreferences() = 0; 417 virtual ::ppapi::Preferences GetPreferences() = 0;
416 }; 418 };
417 419
418 } // namespace ppapi 420 } // namespace ppapi
419 } // namespace webkit 421 } // namespace webkit
420 422
421 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698