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

Side by Side Diff: webkit/plugins/npapi/webplugin.h

Issue 8678037: Render Core Animation plugins through WebKit's compositor rather than (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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_NPAPI_WEBPLUGIN_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // to the browser, allowing mapping to a surface for hardware accelleration 149 // to the browser, allowing mapping to a surface for hardware accelleration
150 // of plug-in content. The browser generates the handle which is then set on 150 // of plug-in content. The browser generates the handle which is then set on
151 // the plug-in. |opaque| indicates whether the content should be treated as 151 // the plug-in. |opaque| indicates whether the content should be treated as
152 // opaque or translucent. 152 // opaque or translucent.
153 // TODO(stuartmorgan): Move this into WebPluginProxy. 153 // TODO(stuartmorgan): Move this into WebPluginProxy.
154 virtual void BindFakePluginWindowHandle(bool opaque) {} 154 virtual void BindFakePluginWindowHandle(bool opaque) {}
155 155
156 // Returns the accelerated surface abstraction for accelerated plugins. 156 // Returns the accelerated surface abstraction for accelerated plugins.
157 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface( 157 virtual WebPluginAcceleratedSurface* GetAcceleratedSurface(
158 gfx::GpuPreference gpu_preference); 158 gfx::GpuPreference gpu_preference);
159
160 // Composited Core Animation plugin support.
161 virtual void AcceleratedPluginEnabledRendering() = 0;
162 virtual void AcceleratedPluginAllocatedIOSurface(int32 width,
163 int32 height,
164 uint32 surface_id) = 0;
165 virtual void AcceleratedPluginSwappedIOSurface() = 0;
159 #endif 166 #endif
160 167
161 // Handles NPN_URLRedirectResponse calls issued by plugins in response to 168 // Handles NPN_URLRedirectResponse calls issued by plugins in response to
162 // HTTP URL redirect notifications. 169 // HTTP URL redirect notifications.
163 virtual void URLRedirectResponse(bool allow, int resource_id) = 0; 170 virtual void URLRedirectResponse(bool allow, int resource_id) = 0;
164 }; 171 };
165 172
166 // Simpler version of ResourceHandleClient that lends itself to proxying. 173 // Simpler version of ResourceHandleClient that lends itself to proxying.
167 class WebPluginResourceClient { 174 class WebPluginResourceClient {
168 public: 175 public:
(...skipping 11 matching lines...) Expand all
180 virtual void DidFinishLoading() = 0; 187 virtual void DidFinishLoading() = 0;
181 virtual void DidFail() = 0; 188 virtual void DidFail() = 0;
182 virtual bool IsMultiByteResponseExpected() = 0; 189 virtual bool IsMultiByteResponseExpected() = 0;
183 virtual int ResourceId() = 0; 190 virtual int ResourceId() = 0;
184 }; 191 };
185 192
186 } // namespace npapi 193 } // namespace npapi
187 } // namespace webkit 194 } // namespace webkit
188 195
189 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ 196 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698