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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 10352016: Consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void DidUpdateBackingStore( 86 virtual void DidUpdateBackingStore(
87 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 87 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
88 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; 88 const std::vector<gfx::Rect>& copy_rects) OVERRIDE;
89 virtual void RenderViewGone(base::TerminationStatus status, 89 virtual void RenderViewGone(base::TerminationStatus status,
90 int error_code) OVERRIDE; 90 int error_code) OVERRIDE;
91 virtual void Destroy() OVERRIDE; 91 virtual void Destroy() OVERRIDE;
92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; 92 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
93 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, 93 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect,
94 const gfx::Rect& end_rect) OVERRIDE; 94 const gfx::Rect& end_rect) OVERRIDE;
95 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 95 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
96 virtual bool CopyFromCompositingSurface( 96 virtual void CopyFromCompositingSurface(
97 const gfx::Size& size,
98 skia::PlatformCanvas* output) OVERRIDE;
99 virtual void AsyncCopyFromCompositingSurface(
100 const gfx::Size& size, 97 const gfx::Size& size,
101 skia::PlatformCanvas* output, 98 skia::PlatformCanvas* output,
102 base::Callback<void(bool)> callback) OVERRIDE; 99 base::Callback<void(bool)> callback) OVERRIDE;
103 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 100 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
104 virtual void AcceleratedSurfaceBuffersSwapped( 101 virtual void AcceleratedSurfaceBuffersSwapped(
105 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 102 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
106 int gpu_host_id) OVERRIDE; 103 int gpu_host_id) OVERRIDE;
107 virtual void AcceleratedSurfacePostSubBuffer( 104 virtual void AcceleratedSurfacePostSubBuffer(
108 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 105 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
109 int gpu_host_id) OVERRIDE; 106 int gpu_host_id) OVERRIDE;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 // These locks are the ones waiting for a texture of the right size to come 295 // These locks are the ones waiting for a texture of the right size to come
299 // back from the renderer/GPU process. 296 // back from the renderer/GPU process.
300 std::vector<linked_ptr<ResizeLock> > resize_locks_; 297 std::vector<linked_ptr<ResizeLock> > resize_locks_;
301 // These locks are the ones waiting for a frame to be drawn. 298 // These locks are the ones waiting for a frame to be drawn.
302 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; 299 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_;
303 300
304 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 301 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
305 }; 302 };
306 303
307 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 304 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698