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

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

Issue 7762013: Added GPU process "echo" IPC message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 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 12 matching lines...) Expand all
23 #include "ppapi/c/pp_instance.h" 23 #include "ppapi/c/pp_instance.h"
24 #include "ppapi/c/pp_stdint.h" 24 #include "ppapi/c/pp_stdint.h"
25 #include "ui/gfx/size.h" 25 #include "ui/gfx/size.h"
26 #include "webkit/fileapi/file_system_types.h" 26 #include "webkit/fileapi/file_system_types.h"
27 #include "webkit/plugins/ppapi/dir_contents.h" 27 #include "webkit/plugins/ppapi/dir_contents.h"
28 #include "webkit/quota/quota_types.h" 28 #include "webkit/quota/quota_types.h"
29 29
30 class AudioMessageFilter; 30 class AudioMessageFilter;
31 class GURL; 31 class GURL;
32 class SkBitmap; 32 class SkBitmap;
33 class Task;
33 34
34 namespace base { 35 namespace base {
35 class MessageLoopProxy; 36 class MessageLoopProxy;
36 class Time; 37 class Time;
37 } 38 }
38 39
39 namespace content { 40 namespace content {
40 class P2PSocketDispatcher; 41 class P2PSocketDispatcher;
41 } 42 }
42 43
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual TransportDIB* GetTransportDIB() const = 0; 159 virtual TransportDIB* GetTransportDIB() const = 0;
159 }; 160 };
160 161
161 class PlatformContext3D { 162 class PlatformContext3D {
162 public: 163 public:
163 virtual ~PlatformContext3D() {} 164 virtual ~PlatformContext3D() {}
164 165
165 // Initialize the context. 166 // Initialize the context.
166 virtual bool Init(const int32* attrib_list) = 0; 167 virtual bool Init(const int32* attrib_list) = 0;
167 168
168 // Set an optional callback that will be invoked when the side effects of
169 // a SwapBuffers call become visible to the compositor. Takes ownership
170 // of the callback.
171 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0;
172
173 // If the plugin instance is backed by an OpenGL, return its ID in the 169 // If the plugin instance is backed by an OpenGL, return its ID in the
174 // compositors namespace. Otherwise return 0. Returns 0 by default. 170 // compositors namespace. Otherwise return 0. Returns 0 by default.
175 virtual unsigned GetBackingTextureId() = 0; 171 virtual unsigned GetBackingTextureId() = 0;
176 172
177 // This call will return the address of the command buffer for this context 173 // This call will return the address of the command buffer for this context
178 // that is constructed in Initialize() and is valid until this context is 174 // that is constructed in Initialize() and is valid until this context is
179 // destroyed. 175 // destroyed.
180 virtual ::gpu::CommandBuffer* GetCommandBuffer() = 0; 176 virtual ::gpu::CommandBuffer* GetCommandBuffer() = 0;
181 177
182 // If the command buffer is routed in the GPU channel, return the route id. 178 // If the command buffer is routed in the GPU channel, return the route id.
183 // Otherwise return 0. 179 // Otherwise return 0.
184 virtual int GetCommandBufferRouteId() = 0; 180 virtual int GetCommandBufferRouteId() = 0;
185 181
186 // Set an optional callback that will be invoked when the context is lost 182 // Set an optional callback that will be invoked when the context is lost
187 // (e.g. gpu process crash). Takes ownership of the callback. 183 // (e.g. gpu process crash). Takes ownership of the callback.
188 virtual void SetContextLostCallback(Callback0::Type* callback) = 0; 184 virtual void SetContextLostCallback(Callback0::Type* callback) = 0;
185
186 // Run the task once the channel has been flushed. Takes care of deleting
187 // the task whether the echo succeeds or not.
188 virtual bool Echo(Task* task) = 0;
189 }; 189 };
190 190
191 class PlatformAudio { 191 class PlatformAudio {
192 public: 192 public:
193 class Client { 193 class Client {
194 protected: 194 protected:
195 virtual ~Client() {} 195 virtual ~Client() {}
196 196
197 public: 197 public:
198 // Called when the stream is created. 198 // Called when the stream is created.
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; 445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0;
446 446
447 // Returns the current preferences. 447 // Returns the current preferences.
448 virtual ::ppapi::Preferences GetPreferences() = 0; 448 virtual ::ppapi::Preferences GetPreferences() = 0;
449 }; 449 };
450 450
451 } // namespace ppapi 451 } // namespace ppapi
452 } // namespace webkit 452 } // namespace webkit
453 453
454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_scheduler_win.cc ('k') | webkit/plugins/ppapi/ppb_graphics_3d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698