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

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

Issue 17971002: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tabcapture-aura: Move calls to RWHImpl Created 7 years, 5 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 #include "ui/compositor/compositor_observer.h" 33 #include "ui/compositor/compositor_observer.h"
34 #include "ui/gfx/display_observer.h" 34 #include "ui/gfx/display_observer.h"
35 #include "ui/gfx/rect.h" 35 #include "ui/gfx/rect.h"
36 #include "webkit/common/cursors/webcursor.h" 36 #include "webkit/common/cursors/webcursor.h"
37 37
38 namespace aura { 38 namespace aura {
39 class WindowTracker; 39 class WindowTracker;
40 } 40 }
41 41
42 namespace cc { 42 namespace cc {
43 class CopyOutputResult;
43 class DelegatedFrameData; 44 class DelegatedFrameData;
44 } 45 }
45 46
46 namespace gfx { 47 namespace gfx {
47 class Canvas; 48 class Canvas;
48 class Display; 49 class Display;
49 } 50 }
50 51
51 namespace ui { 52 namespace ui {
52 class CompositorLock; 53 class CompositorLock;
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Called after |window_| is parented to a RootWindow. 427 // Called after |window_| is parented to a RootWindow.
427 void AddedToRootWindow(); 428 void AddedToRootWindow();
428 429
429 // Called prior to removing |window_| from a RootWindow. 430 // Called prior to removing |window_| from a RootWindow.
430 void RemovingFromRootWindow(); 431 void RemovingFromRootWindow();
431 432
432 // Called after commit for the last reference to the texture going away 433 // Called after commit for the last reference to the texture going away
433 // after it was released as the frontbuffer. 434 // after it was released as the frontbuffer.
434 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>); 435 void SetSurfaceNotInUseByCompositor(scoped_refptr<ui::Texture>);
435 436
436 // Called after async thumbnailer task completes. Used to call 437 // Called after async thumbnailer task completes. Scales and crops the result
437 // AdjustSurfaceProtection. 438 // of the copy.
438 static void CopyFromCompositingSurfaceFinished( 439 static void CopyFromCompositingSurfaceHasResult(
439 const SkBitmap& bitmap, 440 const gfx::Size& dst_size_in_pixel,
440 const base::Callback<void(bool, const SkBitmap&)>& callback, 441 const base::Callback<void(bool, const SkBitmap&)>& callback,
441 bool result); 442 scoped_ptr<cc::CopyOutputResult> result);
443 static void PrepareTextureCopyOutputResult(
444 const gfx::Size& dst_size_in_pixel,
445 const base::Callback<void(bool, const SkBitmap&)>& callback,
446 scoped_ptr<cc::CopyOutputResult> result);
447 static void PrepareBitmapCopyOutputResult(
448 const gfx::Size& dst_size_in_pixel,
449 const base::Callback<void(bool, const SkBitmap&)>& callback,
450 scoped_ptr<cc::CopyOutputResult> result);
442 451
443 ui::Compositor* GetCompositor(); 452 ui::Compositor* GetCompositor();
444 453
445 // Detaches |this| from the input method object. 454 // Detaches |this| from the input method object.
446 void DetachFromInputMethod(); 455 void DetachFromInputMethod();
447 456
448 // Dismisses a Web Popup on mouse press outside the popup and its parent. 457 // Dismisses a Web Popup on mouse press outside the popup and its parent.
449 void ApplyEventFilterForPopupExit(ui::MouseEvent* event); 458 void ApplyEventFilterForPopupExit(ui::MouseEvent* event);
450 459
451 // Converts |rect| from window coordinate to screen coordinate. 460 // Converts |rect| from window coordinate to screen coordinate.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 TouchEditingClient* touch_editing_client_; 682 TouchEditingClient* touch_editing_client_;
674 683
675 ui::LatencyInfo software_latency_info_; 684 ui::LatencyInfo software_latency_info_;
676 685
677 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 686 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
678 }; 687 };
679 688
680 } // namespace content 689 } // namespace content
681 690
682 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 691 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698