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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 1169983006: Convert BrowserPlugin to render using cc::Surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore guest resize pathway. Created 5 years, 6 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/browser/browser_plugin/browser_plugin_guest.h
diff --git a/content/browser/browser_plugin/browser_plugin_guest.h b/content/browser/browser_plugin/browser_plugin_guest.h
index 86278b98694810af4cffc6ec4fa01b6f71f4346d..ee4afb9d4d8e6d565eb93a6948bff2ac15064538 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.h
+++ b/content/browser/browser_plugin/browser_plugin_guest.h
@@ -51,6 +51,8 @@ struct FrameHostMsg_ShowPopup_Params;
namespace cc {
class CompositorFrame;
+struct SurfaceId;
+struct SurfaceSequence;
} // namespace cc
namespace gfx {
@@ -213,10 +215,16 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
void PointerLockPermissionResponse(bool allow);
+ void UpdateGuestSizeIfNecessary(const gfx::Size& frame_size,
+ float scale_factor);
void SwapCompositorFrame(uint32 output_surface_id,
int host_process_id,
int host_routing_id,
scoped_ptr<cc::CompositorFrame> frame);
+ void SetChildFrameSurface(const cc::SurfaceId& surface_id,
+ const gfx::Size& frame_size,
+ float scale_factor,
+ const cc::SurfaceSequence& sequence);
void SetContentsOpaque(bool opaque);
@@ -241,6 +249,10 @@ class CONTENT_EXPORT BrowserPluginGuest : public GuestHost,
bool InAutoSizeBounds(const gfx::Size& size) const;
+ void OnSatisfySequence(int instance_id, const cc::SurfaceSequence& sequence);
+ void OnRequireSequence(int instance_id,
+ const cc::SurfaceId& id,
+ const cc::SurfaceSequence& sequence);
// Message handlers for messages from embedder.
void OnCompositorFrameSwappedACK(
int instance_id,

Powered by Google App Engine
This is Rietveld 408576698