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

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: Fix build and tests after rebase 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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 base::Bind(&RenderWidgetHostViewAndroid:: 906 base::Bind(&RenderWidgetHostViewAndroid::
907 PrepareTextureCopyOutputResultForDelegatedReadback, 907 PrepareTextureCopyOutputResultForDelegatedReadback,
908 dst_size_in_pixel, preferred_color_type, start_time, 908 dst_size_in_pixel, preferred_color_type, start_time,
909 readback_layer, callback)); 909 readback_layer, callback));
910 if (!src_subrect_in_pixel.IsEmpty()) 910 if (!src_subrect_in_pixel.IsEmpty())
911 request->set_area(src_subrect_in_pixel); 911 request->set_area(src_subrect_in_pixel);
912 readback_layer->RequestCopyOfOutput(request.Pass()); 912 readback_layer->RequestCopyOfOutput(request.Pass());
913 } 913 }
914 914
915 void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame( 915 void RenderWidgetHostViewAndroid::CopyFromCompositingSurfaceToVideoFrame(
916 const gfx::Rect& src_subrect, 916 const gfx::Rect& src_subrect,
917 const scoped_refptr<media::VideoFrame>& target, 917 const scoped_refptr<media::VideoFrame>& target,
918 const base::Callback<void(bool)>& callback) { 918 const base::Callback<void(const gfx::Rect&, bool)>& callback) {
919 NOTIMPLEMENTED(); 919 NOTIMPLEMENTED();
920 callback.Run(false); 920 callback.Run(gfx::Rect(), false);
921 } 921 }
922 922
923 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const { 923 bool RenderWidgetHostViewAndroid::CanCopyToVideoFrame() const {
924 return false; 924 return false;
925 } 925 }
926 926
927 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup( 927 void RenderWidgetHostViewAndroid::ShowDisambiguationPopup(
928 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) { 928 const gfx::Rect& rect_pixels, const SkBitmap& zoomed_bitmap) {
929 if (!content_view_core_) 929 if (!content_view_core_)
930 return; 930 return;
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 results->orientationAngle = display.RotationAsDegree(); 2043 results->orientationAngle = display.RotationAsDegree();
2044 results->orientationType = 2044 results->orientationType =
2045 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2045 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2046 gfx::DeviceDisplayInfo info; 2046 gfx::DeviceDisplayInfo info;
2047 results->depth = info.GetBitsPerPixel(); 2047 results->depth = info.GetBitsPerPixel();
2048 results->depthPerComponent = info.GetBitsPerComponent(); 2048 results->depthPerComponent = info.GetBitsPerComponent();
2049 results->isMonochrome = (results->depthPerComponent == 0); 2049 results->isMonochrome = (results->depthPerComponent == 0);
2050 } 2050 }
2051 2051
2052 } // namespace content 2052 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698