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

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

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments from #4 Created 6 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 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 588
589 void RenderWidgetHostViewBase::FlushInput() { 589 void RenderWidgetHostViewBase::FlushInput() {
590 RenderWidgetHostImpl* impl = NULL; 590 RenderWidgetHostImpl* impl = NULL;
591 if (GetRenderWidgetHost()) 591 if (GetRenderWidgetHost())
592 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); 592 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
593 if (!impl) 593 if (!impl)
594 return; 594 return;
595 impl->FlushInput(); 595 impl->FlushInput();
596 } 596 }
597 597
598 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { 598 SkColorType RenderWidgetHostViewBase::PreferredReadbackFormat() {
599 return SkBitmap::kARGB_8888_Config; 599 return kN32_SkColorType;
600 } 600 }
601 601
602 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { 602 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const {
603 return GetViewBounds().size(); 603 return GetViewBounds().size();
604 } 604 }
605 605
606 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { 606 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) {
607 NOTIMPLEMENTED(); 607 NOTIMPLEMENTED();
608 } 608 }
609 609
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 ? blink::WebScreenOrientationPortraitPrimary 662 ? blink::WebScreenOrientationPortraitPrimary
663 : blink::WebScreenOrientationPortraitSecondary; 663 : blink::WebScreenOrientationPortraitSecondary;
664 } 664 }
665 665
666 return primary_landscape_angle == angle 666 return primary_landscape_angle == angle
667 ? blink::WebScreenOrientationLandscapePrimary 667 ? blink::WebScreenOrientationLandscapePrimary
668 : blink::WebScreenOrientationLandscapeSecondary; 668 : blink::WebScreenOrientationLandscapeSecondary;
669 } 669 }
670 670
671 } // namespace content 671 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698