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

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

Issue 1412173003: cast: support cursor rendering for tab capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable cursor rendering on windows until resources are available Created 5 years, 1 month 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
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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 void RenderWidgetHostViewAura::CopyFromCompositingSurface( 1117 void RenderWidgetHostViewAura::CopyFromCompositingSurface(
1118 const gfx::Rect& src_subrect, 1118 const gfx::Rect& src_subrect,
1119 const gfx::Size& dst_size, 1119 const gfx::Size& dst_size,
1120 const ReadbackRequestCallback& callback, 1120 const ReadbackRequestCallback& callback,
1121 const SkColorType preferred_color_type) { 1121 const SkColorType preferred_color_type) {
1122 delegated_frame_host_->CopyFromCompositingSurface( 1122 delegated_frame_host_->CopyFromCompositingSurface(
1123 src_subrect, dst_size, callback, preferred_color_type); 1123 src_subrect, dst_size, callback, preferred_color_type);
1124 } 1124 }
1125 1125
1126 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame( 1126 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame(
1127 const gfx::Rect& src_subrect, 1127 const gfx::Rect& src_subrect,
1128 const scoped_refptr<media::VideoFrame>& target, 1128 const scoped_refptr<media::VideoFrame>& target,
1129 const base::Callback<void(bool)>& callback) { 1129 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
1130 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame( 1130 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame(
1131 src_subrect, target, callback); 1131 src_subrect, target, callback);
1132 } 1132 }
1133 1133
1134 bool RenderWidgetHostViewAura::CanCopyToVideoFrame() const { 1134 bool RenderWidgetHostViewAura::CanCopyToVideoFrame() const {
1135 return delegated_frame_host_->CanCopyToVideoFrame(); 1135 return delegated_frame_host_->CanCopyToVideoFrame();
1136 } 1136 }
1137 1137
1138 void RenderWidgetHostViewAura::BeginFrameSubscription( 1138 void RenderWidgetHostViewAura::BeginFrameSubscription(
1139 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) { 1139 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) {
(...skipping 1800 matching lines...) Expand 10 before | Expand all | Expand 10 after
2940 2940
2941 //////////////////////////////////////////////////////////////////////////////// 2941 ////////////////////////////////////////////////////////////////////////////////
2942 // RenderWidgetHostViewBase, public: 2942 // RenderWidgetHostViewBase, public:
2943 2943
2944 // static 2944 // static
2945 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2945 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2946 GetScreenInfoForWindow(results, NULL); 2946 GetScreenInfoForWindow(results, NULL);
2947 } 2947 }
2948 2948
2949 } // namespace content 2949 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698