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

Side by Side Diff: content/renderer/webplugin_delegate_proxy.h

Issue 11361170: Get windowless plugins working when accelerated compositing is turned on. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 #endif 200 #endif
201 201
202 void OnURLRedirectResponse(bool allow, int resource_id); 202 void OnURLRedirectResponse(bool allow, int resource_id);
203 203
204 // Helper function that sends the UpdateGeometry message. 204 // Helper function that sends the UpdateGeometry message.
205 void SendUpdateGeometry(bool bitmaps_changed); 205 void SendUpdateGeometry(bool bitmaps_changed);
206 206
207 // Draw a graphic indicating a crashed plugin. 207 // Draw a graphic indicating a crashed plugin.
208 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect); 208 void PaintSadPlugin(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
209 209
210 // Returns true if the given rectangle is different in the native drawing 210 // Returns true if the given rectangle is different in the canvas and the
211 // context and the current background bitmap. 211 // current background bitmap.
212 bool BackgroundChanged(gfx::NativeDrawingContext context, 212 bool BackgroundChanged(SkCanvas* canvas, const gfx::Rect& rect);
213 const gfx::Rect& rect);
214 213
215 // Copies the given rectangle from the back-buffer transport_stores_ bitmap to 214 // Copies the given rectangle from the back-buffer transport_stores_ bitmap to
216 // the front-buffer transport_stores_ bitmap. 215 // the front-buffer transport_stores_ bitmap.
217 void CopyFromBackBufferToFrontBuffer(const gfx::Rect& rect); 216 void CopyFromBackBufferToFrontBuffer(const gfx::Rect& rect);
218 217
219 // Updates the front-buffer with the given rectangle from the back-buffer, 218 // Updates the front-buffer with the given rectangle from the back-buffer,
220 // either by copying the rectangle or flipping the buffers. 219 // either by copying the rectangle or flipping the buffers.
221 void UpdateFrontBuffer(const gfx::Rect& rect, bool allow_buffer_flipping); 220 void UpdateFrontBuffer(const gfx::Rect& rect, bool allow_buffer_flipping);
222 221
223 // Clears the shared memory section and canvases used for windowless plugins. 222 // Clears the shared memory section and canvases used for windowless plugins.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 328
330 // The url of the main frame hosting the plugin. 329 // The url of the main frame hosting the plugin.
331 GURL page_url_; 330 GURL page_url_;
332 331
333 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); 332 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy);
334 }; 333 };
335 334
336 } // namespace content 335 } // namespace content
337 336
338 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ 337 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698