Index: content/browser/renderer_host/render_widget_host_view_aura.h |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.h b/content/browser/renderer_host/render_widget_host_view_aura.h |
index 04a4bd1ebfd059b4f14907724d9cfc6852ad980e..2c862db3ae50e6c1e798867e3202cf583b99d342 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.h |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.h |
@@ -373,7 +373,9 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
// Exposed for tests. |
aura::Window* window() { return window_; } |
- gfx::Size current_frame_size() const { return current_frame_size_; } |
+ gfx::Size current_frame_size_in_dip() const { |
+ return current_frame_size_in_dip_; |
+ } |
void LockResources(); |
void UnlockResources(); |
@@ -521,28 +523,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
// Converts |rect| from screen coordinate to window coordinate. |
gfx::Rect ConvertRectFromScreen(const gfx::Rect& rect) const; |
- typedef base::Callback<void(bool, const scoped_refptr<ui::Texture>&)> |
- BufferPresentedCallback; |
- |
- // The common entry point for buffer updates from renderer |
- // and GPU process. |
- void BuffersSwapped(const gfx::Size& surface_size, |
- const gfx::Rect& damage_rect, |
- float surface_scale_factor, |
- const std::string& mailbox_name, |
- const std::vector<ui::LatencyInfo>& latency_info, |
- const BufferPresentedCallback& ack_callback); |
- |
- bool SwapBuffersPrepare(const gfx::Rect& surface_rect, |
- float surface_scale_factor, |
- const gfx::Rect& damage_rect, |
- const std::string& mailbox_name, |
- const BufferPresentedCallback& ack_callback); |
- |
- void SwapBuffersCompleted( |
- const BufferPresentedCallback& ack_callback, |
- const scoped_refptr<ui::Texture>& texture_to_return); |
- |
void SwapDelegatedFrame( |
uint32 output_surface_id, |
scoped_ptr<cc::DelegatedFrameData> frame_data, |
@@ -640,9 +620,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
std::vector<base::Closure> on_compositing_did_commit_callbacks_; |
- // The current frontbuffer texture. |
- scoped_refptr<ui::Texture> current_surface_; |
- |
// This holds the current software framebuffer, if any. |
scoped_ptr<SoftwareFrameManager> software_frame_manager_; |
@@ -655,12 +632,6 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
// returns until the acks are sent. |
int pending_delegated_ack_count_; |
- // The damage in the previously presented buffer. |
- SkRegion previous_damage_; |
- |
- // Pending damage from previous frames that we skipped. |
- SkRegion skipped_damage_; |
- |
// True after a delegated frame has been skipped, until a frame is not |
// skipped. |
bool skipped_frames_; |
@@ -673,11 +644,9 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
// Provides delegated frame updates to the cc::DelegatedRendererLayer. |
scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; |
- // The size of the last frame that was swapped (even if we skipped it). |
- // Used to determine when the skipped_damage_ needs to be reset due to |
- // size changes between front- and backbuffer. |
- gfx::Size last_swapped_surface_size_; |
- float last_swapped_surface_scale_factor_; |
+ // The size and scale of the last software compositing frame that was swapped. |
+ gfx::Size last_swapped_software_frame_size_; |
+ float last_swapped_software_frame_scale_factor_; |
gfx::GLSurfaceHandle shared_surface_handle_; |
@@ -713,7 +682,7 @@ class CONTENT_EXPORT RenderWidgetHostViewAura |
scoped_ptr<ResizeLock> resize_lock_; |
// Keeps track of the current frame size. |
- gfx::Size current_frame_size_; |
+ gfx::Size current_frame_size_in_dip_; |
// This lock is for waiting for a front surface to become available to draw. |
scoped_refptr<ui::CompositorLock> released_front_lock_; |