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

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

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittest DCHECK OOPS Created 6 years, 4 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 2447 matching lines...) Expand 10 before | Expand all | Expand 10 after
2458 } 2458 }
2459 2459
2460 ui::Layer* RenderWidgetHostViewAura::GetLayer() { 2460 ui::Layer* RenderWidgetHostViewAura::GetLayer() {
2461 return window_->layer(); 2461 return window_->layer();
2462 } 2462 }
2463 2463
2464 RenderWidgetHostImpl* RenderWidgetHostViewAura::GetHost() { 2464 RenderWidgetHostImpl* RenderWidgetHostViewAura::GetHost() {
2465 return host_; 2465 return host_;
2466 } 2466 }
2467 2467
2468 void RenderWidgetHostViewAura::SchedulePaintInRect(
2469 const gfx::Rect& damage_rect_in_dip) {
2470 window_->SchedulePaintInRect(damage_rect_in_dip);
2471 }
2472
2473 bool RenderWidgetHostViewAura::IsVisible() { 2468 bool RenderWidgetHostViewAura::IsVisible() {
2474 return IsShowing(); 2469 return IsShowing();
2475 } 2470 }
2476 2471
2477 gfx::Size RenderWidgetHostViewAura::DesiredFrameSize() { 2472 gfx::Size RenderWidgetHostViewAura::DesiredFrameSize() {
2478 return window_->bounds().size(); 2473 return window_->bounds().size();
2479 } 2474 }
2480 2475
2481 float RenderWidgetHostViewAura::CurrentDeviceScaleFactor() { 2476 float RenderWidgetHostViewAura::CurrentDeviceScaleFactor() {
2482 return current_device_scale_factor_; 2477 return current_device_scale_factor_;
(...skipping 20 matching lines...) Expand all
2503 2498
2504 //////////////////////////////////////////////////////////////////////////////// 2499 ////////////////////////////////////////////////////////////////////////////////
2505 // RenderWidgetHostViewBase, public: 2500 // RenderWidgetHostViewBase, public:
2506 2501
2507 // static 2502 // static
2508 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) { 2503 void RenderWidgetHostViewBase::GetDefaultScreenInfo(WebScreenInfo* results) {
2509 GetScreenInfoForWindow(results, NULL); 2504 GetScreenInfoForWindow(results, NULL);
2510 } 2505 }
2511 2506
2512 } // namespace content 2507 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698