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

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

Issue 274453002: Remove RenderWidget::SetBackground, change IPC to pass a bool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-setbackground: nomac Created 6 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 #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/sys_utils.h" 9 #include "base/android/sys_utils.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 } 658 }
659 } 659 }
660 660
661 void RenderWidgetHostViewAndroid::SelectionRootBoundsChanged( 661 void RenderWidgetHostViewAndroid::SelectionRootBoundsChanged(
662 const gfx::Rect& bounds) { 662 const gfx::Rect& bounds) {
663 } 663 }
664 664
665 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() { 665 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() {
666 } 666 }
667 667
668 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) { 668 void RenderWidgetHostViewAndroid::SetBackgroundOpaque(bool opaque) {
669 RenderWidgetHostViewBase::SetBackground(background); 669 RenderWidgetHostViewBase::SetBackgroundOpaque(opaque);
670 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); 670 host_->SetBackgroundOpaque(opaque);
671 } 671 }
672 672
673 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( 673 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
674 const gfx::Rect& src_subrect, 674 const gfx::Rect& src_subrect,
675 const gfx::Size& dst_size, 675 const gfx::Size& dst_size,
676 const base::Callback<void(bool, const SkBitmap&)>& callback, 676 const base::Callback<void(bool, const SkBitmap&)>& callback,
677 const SkBitmap::Config bitmap_config) { 677 const SkBitmap::Config bitmap_config) {
678 if (!IsReadbackConfigSupported(bitmap_config)) { 678 if (!IsReadbackConfigSupported(bitmap_config)) {
679 callback.Run(false, SkBitmap()); 679 callback.Run(false, SkBitmap());
680 return; 680 return;
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 results->availableRect = display.work_area(); 1454 results->availableRect = display.work_area();
1455 results->deviceScaleFactor = display.device_scale_factor(); 1455 results->deviceScaleFactor = display.device_scale_factor();
1456 results->orientationAngle = display.RotationAsDegree(); 1456 results->orientationAngle = display.RotationAsDegree();
1457 gfx::DeviceDisplayInfo info; 1457 gfx::DeviceDisplayInfo info;
1458 results->depth = info.GetBitsPerPixel(); 1458 results->depth = info.GetBitsPerPixel();
1459 results->depthPerComponent = info.GetBitsPerComponent(); 1459 results->depthPerComponent = info.GetBitsPerComponent();
1460 results->isMonochrome = (results->depthPerComponent == 0); 1460 results->isMonochrome = (results->depthPerComponent == 0);
1461 } 1461 }
1462 1462
1463 } // namespace content 1463 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698