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

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

Issue 12207144: Apply merge from @fsamuel. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.h
===================================================================
--- content/browser/browser_plugin/browser_plugin_guest.h (revision 182101)
+++ content/browser/browser_plugin/browser_plugin_guest.h (working copy)
@@ -33,6 +33,7 @@
#include "base/compiler_specific.h"
#include "base/id_map.h"
+#include "base/shared_memory.h"
#include "base/time.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -236,13 +237,9 @@
// Stop loading the guest.
virtual void Stop();
// Overridden in tests.
- virtual void SetDamageBuffer(TransportDIB* damage_buffer,
-#if defined(OS_WIN)
- int damage_buffer_size,
- TransportDIB::Handle remote_handle,
-#endif
- const gfx::Size& damage_view_size,
- float scale_factor);
+ virtual void SetDamageBuffer(
+ const BrowserPluginHostMsg_ResizeGuest_Params& params);
+
// Overridden in tests.
virtual void SetCompositingBufferData(int gpu_process_id,
uint32 client_id,
@@ -263,14 +260,13 @@
// Returns the identifier that uniquely identifies a browser plugin guest
// within an embedder.
int instance_id() const { return instance_id_; }
- TransportDIB* damage_buffer() const { return damage_buffer_.get(); }
+ base::SharedMemory* damage_buffer() const { return damage_buffer_.get(); }
const gfx::Size& damage_view_size() const { return damage_view_size_; }
float damage_buffer_scale_factor() const {
return damage_buffer_scale_factor_;
}
- // Returns the transport DIB associated with the dib in resize |params|.
- TransportDIB* GetDamageBufferFromEmbedder(
- RenderViewHost* embedder_rvh,
+ // Returns the damage buffer corresponding to the handle in resize |params|.
+ base::SharedMemory* GetDamageBufferFromEmbedder(
const BrowserPluginHostMsg_ResizeGuest_Params& params);
// Returns the embedder's routing ID.
@@ -294,11 +290,10 @@
// An identifier that uniquely identifies a browser plugin guest within an
// embedder.
int instance_id_;
- scoped_ptr<TransportDIB> damage_buffer_;
-#if defined(OS_WIN)
+ scoped_ptr<base::SharedMemory> damage_buffer_;
+ // An identifier that uniquely identifies a damage buffer.
+ uint32 damage_buffer_sequence_id_;
size_t damage_buffer_size_;
- TransportDIB::Handle remote_damage_buffer_handle_;
-#endif
gfx::Size damage_view_size_;
float damage_buffer_scale_factor_;
gfx::Rect guest_window_rect_;
« no previous file with comments | « no previous file | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698