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

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

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 aura::client::CursorClient* cursor_client = 927 aura::client::CursorClient* cursor_client =
928 aura::client::GetCursorClient(root); 928 aura::client::GetCursorClient(root);
929 if (cursor_client && !cursor_client->IsCursorVisible()) 929 if (cursor_client && !cursor_client->IsCursorVisible())
930 cursor_client->DisableMouseEvents(); 930 cursor_client->DisableMouseEvents();
931 } 931 }
932 932
933 void RenderWidgetHostViewAura::CopyFromCompositingSurface( 933 void RenderWidgetHostViewAura::CopyFromCompositingSurface(
934 const gfx::Rect& src_subrect, 934 const gfx::Rect& src_subrect,
935 const gfx::Size& dst_size, 935 const gfx::Size& dst_size,
936 const base::Callback<void(bool, const SkBitmap&)>& callback, 936 const base::Callback<void(bool, const SkBitmap&)>& callback,
937 const SkBitmap::Config config) { 937 const SkColorType color_type) {
938 delegated_frame_host_->CopyFromCompositingSurface( 938 delegated_frame_host_->CopyFromCompositingSurface(
939 src_subrect, dst_size, callback, config); 939 src_subrect, dst_size, callback, color_type);
940 } 940 }
941 941
942 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame( 942 void RenderWidgetHostViewAura::CopyFromCompositingSurfaceToVideoFrame(
943 const gfx::Rect& src_subrect, 943 const gfx::Rect& src_subrect,
944 const scoped_refptr<media::VideoFrame>& target, 944 const scoped_refptr<media::VideoFrame>& target,
945 const base::Callback<void(bool)>& callback) { 945 const base::Callback<void(bool)>& callback) {
946 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame( 946 delegated_frame_host_->CopyFromCompositingSurfaceToVideoFrame(
947 src_subrect, target, callback); 947 src_subrect, target, callback);
948 } 948 }
949 949
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 NativeWebKeyboardEvent copy_event(event); 2411 NativeWebKeyboardEvent copy_event(event);
2412 copy_event.match_edit_command = true; 2412 copy_event.match_edit_command = true;
2413 host_->ForwardKeyboardEvent(copy_event); 2413 host_->ForwardKeyboardEvent(copy_event);
2414 return; 2414 return;
2415 } 2415 }
2416 #endif 2416 #endif
2417 2417
2418 host_->ForwardKeyboardEvent(event); 2418 host_->ForwardKeyboardEvent(event);
2419 } 2419 }
2420 2420
2421 SkBitmap::Config RenderWidgetHostViewAura::PreferredReadbackFormat() { 2421 SkColorType RenderWidgetHostViewAura::PreferredReadbackFormat() {
2422 return SkBitmap::kARGB_8888_Config; 2422 return kN32_SkColorType;
2423 } 2423 }
2424 2424
2425 //////////////////////////////////////////////////////////////////////////////// 2425 ////////////////////////////////////////////////////////////////////////////////
2426 // DelegatedFrameHost, public: 2426 // DelegatedFrameHost, public:
2427 2427
2428 ui::Compositor* RenderWidgetHostViewAura::GetCompositor() const { 2428 ui::Compositor* RenderWidgetHostViewAura::GetCompositor() const {
2429 aura::WindowTreeHost* host = window_->GetHost(); 2429 aura::WindowTreeHost* host = window_->GetHost();
2430 return host ? host->compositor() : NULL; 2430 return host ? host->compositor() : NULL;
2431 } 2431 }
2432 2432
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2476 2476
2477 //////////////////////////////////////////////////////////////////////////////// 2477 ////////////////////////////////////////////////////////////////////////////////
2478 // RenderWidgetHostViewBase, public: 2478 // RenderWidgetHostViewBase, public:
2479 2479
2480 // static 2480 // static
2481 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2481 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2482 GetScreenInfoForWindow(results, NULL); 2482 GetScreenInfoForWindow(results, NULL);
2483 } 2483 }
2484 2484
2485 } // namespace content 2485 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698