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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.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_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/android/build_info.h" 9 #include "base/android/build_info.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 base::Bind(&RenderWidgetHostViewAndroid:: 918 base::Bind(&RenderWidgetHostViewAndroid::
919 PrepareTextureCopyOutputResultForDelegatedReadback, 919 PrepareTextureCopyOutputResultForDelegatedReadback,
920 dst_size_in_pixel, preferred_color_type, start_time, 920 dst_size_in_pixel, preferred_color_type, start_time,
921 readback_layer, callback)); 921 readback_layer, callback));
922 if (!src_subrect_in_pixel.IsEmpty()) 922 if (!src_subrect_in_pixel.IsEmpty())
923 request->set_area(src_subrect_in_pixel); 923 request->set_area(src_subrect_in_pixel);
924 readback_layer->RequestCopyOfOutput(request.Pass()); 924 readback_layer->RequestCopyOfOutput(request.Pass());
925 } 925 }
926 926
927 void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame( 927 void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame(
928 const gfx::Rect& src_subrect, 928 const gfx::Rect& src_subrect,
929 const scoped_refptr<media::VideoFrame>& target, 929 const scoped_refptr<media::VideoFrame>& target,
930 const base::Callback<void(bool)>& callback) { 930 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
931 NOTIMPLEMENTED(); 931 NOTIMPLEMENTED();
932 callback.Run(false); 932 callback.Run(gfx::Rect(), false);
933 } 933 }
934 934
935 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const { 935 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const {
936 return false; 936 return false;
937 } 937 }
938 938
939 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup( 939 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup(
940 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) { 940 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) {
941 if (!content_view_core_) 941 if (!content_view_core_)
942 return; 942 return;
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 results->orientationAngle = display.RotationAsDegree(); 2060 results->orientationAngle = display.RotationAsDegree();
2061 results->orientationType = 2061 results->orientationType =
2062 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2062 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2063 gfx::DeviceDisplayInfo info; 2063 gfx::DeviceDisplayInfo info;
2064 results->depth = info.GetBitsPerPixel(); 2064 results->depth = info.GetBitsPerPixel();
2065 results->depthPerComponent = info.GetBitsPerComponent(); 2065 results->depthPerComponent = info.GetBitsPerComponent();
2066 results->isMonochrome = (results->depthPerComponent == 0); 2066 results->isMonochrome = (results->depthPerComponent == 0);
2067 } 2067 }
2068 2068
2069 } // namespace content 2069 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698