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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.mm

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix crashes 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_mac.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 #include <OpenGL/gl.h> 8 #include <OpenGL/gl.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 10
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 } 411 }
412 412
413 ui::Layer* RenderWidgetHostViewMac::GetLayer() { 413 ui::Layer* RenderWidgetHostViewMac::GetLayer() {
414 return root_layer_.get(); 414 return root_layer_.get();
415 } 415 }
416 416
417 RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() { 417 RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() {
418 return render_widget_host_; 418 return render_widget_host_;
419 } 419 }
420 420
421 void RenderWidgetHostViewMac::SchedulePaintInRect(
422 const gfx::Rect& damage_rect_in_dip) {
423 DCHECK(GetLayer());
424 GetLayer()->SchedulePaint(damage_rect_in_dip);
425 }
426
427 bool RenderWidgetHostViewMac::IsVisible() { 421 bool RenderWidgetHostViewMac::IsVisible() {
428 return !render_widget_host_->is_hidden(); 422 return !render_widget_host_->is_hidden();
429 } 423 }
430 424
431 gfx::Size RenderWidgetHostViewMac::DesiredFrameSize() { 425 gfx::Size RenderWidgetHostViewMac::DesiredFrameSize() {
432 return GetViewBounds().size(); 426 return GetViewBounds().size();
433 } 427 }
434 428
435 float RenderWidgetHostViewMac::CurrentDeviceScaleFactor() { 429 float RenderWidgetHostViewMac::CurrentDeviceScaleFactor() {
436 return ViewScaleFactor(); 430 return ViewScaleFactor();
(...skipping 2917 matching lines...) Expand 10 before | Expand all | Expand 10 after
3354 3348
3355 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3349 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3356 // regions that are not draggable. (See ControlRegionView in 3350 // regions that are not draggable. (See ControlRegionView in
3357 // native_app_window_cocoa.mm). This requires the render host view to be 3351 // native_app_window_cocoa.mm). This requires the render host view to be
3358 // draggable by default. 3352 // draggable by default.
3359 - (BOOL)mouseDownCanMoveWindow { 3353 - (BOOL)mouseDownCanMoveWindow {
3360 return YES; 3354 return YES;
3361 } 3355 }
3362 3356
3363 @end 3357 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698