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

Unified Diff: content/renderer/pepper/pepper_graphics_2d_host.h

Issue 23866006: Make fullscreen pepper flash create a texture layer with software compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/pepper_graphics_2d_host.h
diff --git a/content/renderer/pepper/pepper_graphics_2d_host.h b/content/renderer/pepper/pepper_graphics_2d_host.h
index 3c1abb09b8cfbc7e5cce33709e95892cfd6e4d17..ad8c94d4fb2f3411139d27c498fb8b273a0cdc60 100644
--- a/content/renderer/pepper/pepper_graphics_2d_host.h
+++ b/content/renderer/pepper/pepper_graphics_2d_host.h
@@ -16,6 +16,8 @@
#include "ppapi/host/resource_host.h"
#include "third_party/WebKit/public/platform/WebCanvas.h"
+namespace cc { class TextureMailbox; }
+
namespace gfx {
class Point;
class Rect;
@@ -57,6 +59,9 @@ class CONTENT_EXPORT PepperGraphics2DHost
const gfx::Rect& plugin_rect,
const gfx::Rect& paint_rect);
+ bool PrepareTextureMailbox(cc::TextureMailbox* mailbox);
+ void AttachedToNewLayer();
+
// Notifications about the view's progress painting. See PluginInstance.
// These messages are used to send Flush callbacks to the plugin.
void ViewWillInitiatePaint();
@@ -169,6 +174,8 @@ class CONTENT_EXPORT PepperGraphics2DHost
bool is_running_in_process_;
+ bool texture_mailbox_modified_;
+
friend class PepperGraphics2DHostTest;
DISALLOW_COPY_AND_ASSIGN(PepperGraphics2DHost);
};

Powered by Google App Engine
This is Rietveld 408576698