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

Side by Side Diff: webkit/plugins/ppapi/mock_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
« no previous file with comments | « ppapi/examples/gles2/gles2.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 namespace gpu {
11 class CommandBufferHelper;
12 }
13
10 namespace webkit { 14 namespace webkit {
11 namespace ppapi { 15 namespace ppapi {
12 16
13 class MockPluginDelegate : public PluginDelegate { 17 class MockPluginDelegate : public PluginDelegate {
14 public: 18 public:
15 MockPluginDelegate(); 19 MockPluginDelegate();
16 virtual ~MockPluginDelegate(); 20 virtual ~MockPluginDelegate();
17 21
18 virtual void PluginFocusChanged(bool focused); 22 virtual void PluginFocusChanged(bool focused);
19 virtual void PluginCrashed(PluginInstance* instance); 23 virtual void PluginCrashed(PluginInstance* instance);
20 virtual void InstanceCreated(PluginInstance* instance); 24 virtual void InstanceCreated(PluginInstance* instance);
21 virtual void InstanceDeleted(PluginInstance* instance); 25 virtual void InstanceDeleted(PluginInstance* instance);
22 virtual SkBitmap* GetSadPluginBitmap(); 26 virtual SkBitmap* GetSadPluginBitmap();
23 virtual PlatformImage2D* CreateImage2D(int width, int height); 27 virtual PlatformImage2D* CreateImage2D(int width, int height);
24 virtual PlatformContext3D* CreateContext3D(); 28 virtual PlatformContext3D* CreateContext3D();
25 virtual PlatformVideoDecoder* CreateVideoDecoder( 29 virtual PlatformVideoDecoder* CreateVideoDecoder(
26 media::VideoDecodeAccelerator::Client* client, 30 media::VideoDecodeAccelerator::Client* client,
27 int command_buffer_route_id); 31 int32 command_buffer_route_id,
32 gpu::CommandBufferHelper* cmd_buffer_helper);
28 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, 33 virtual PlatformAudio* CreateAudio(uint32_t sample_rate,
29 uint32_t sample_count, 34 uint32_t sample_count,
30 PlatformAudio::Client* client); 35 PlatformAudio::Client* client);
31 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); 36 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client);
32 virtual void NumberOfFindResultsChanged(int identifier, 37 virtual void NumberOfFindResultsChanged(int identifier,
33 int total, 38 int total,
34 bool final_result); 39 bool final_result);
35 virtual void SelectedFindResultChanged(int identifier, int index); 40 virtual void SelectedFindResultChanged(int identifier, int index);
36 virtual bool RunFileChooser( 41 virtual bool RunFileChooser(
37 const WebKit::WebFileChooserParams& params, 42 const WebKit::WebFileChooserParams& params,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual double GetLocalTimeZoneOffset(base::Time t); 112 virtual double GetLocalTimeZoneOffset(base::Time t);
108 virtual std::string GetFlashCommandLineArgs(); 113 virtual std::string GetFlashCommandLineArgs();
109 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); 114 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size);
110 virtual ::ppapi::Preferences GetPreferences(); 115 virtual ::ppapi::Preferences GetPreferences();
111 }; 116 };
112 117
113 } // namespace ppapi 118 } // namespace ppapi
114 } // namespace webkit 119 } // namespace webkit
115 120
116 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 121 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « ppapi/examples/gles2/gles2.cc ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698