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

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

Issue 427393005: Fix RenderWidgetHostViewMac::SchedulePaintInRect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: piman nit 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 ui::Layer* RenderWidgetHostViewMac::GetLayer() { 419 ui::Layer* RenderWidgetHostViewMac::GetLayer() {
420 return root_layer_.get(); 420 return root_layer_.get();
421 } 421 }
422 422
423 RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() { 423 RenderWidgetHostImpl* RenderWidgetHostViewMac::GetHost() {
424 return render_widget_host_; 424 return render_widget_host_;
425 } 425 }
426 426
427 void RenderWidgetHostViewMac::SchedulePaintInRect( 427 void RenderWidgetHostViewMac::SchedulePaintInRect(
428 const gfx::Rect& damage_rect_in_dip) { 428 const gfx::Rect& damage_rect_in_dip) {
429 if (browser_compositor_view_) 429 DCHECK(GetLayer());
430 browser_compositor_view_->GetCompositor()->ScheduleFullRedraw(); 430 GetLayer()->SchedulePaint(damage_rect_in_dip);
431 } 431 }
432 432
433 bool RenderWidgetHostViewMac::IsVisible() { 433 bool RenderWidgetHostViewMac::IsVisible() {
434 return !render_widget_host_->is_hidden(); 434 return !render_widget_host_->is_hidden();
435 } 435 }
436 436
437 gfx::Size RenderWidgetHostViewMac::DesiredFrameSize() { 437 gfx::Size RenderWidgetHostViewMac::DesiredFrameSize() {
438 return GetViewBounds().size(); 438 return GetViewBounds().size();
439 } 439 }
440 440
(...skipping 3581 matching lines...) Expand 10 before | Expand all | Expand 10 after
4022 4022
4023 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 4023 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
4024 // regions that are not draggable. (See ControlRegionView in 4024 // regions that are not draggable. (See ControlRegionView in
4025 // native_app_window_cocoa.mm). This requires the render host view to be 4025 // native_app_window_cocoa.mm). This requires the render host view to be
4026 // draggable by default. 4026 // draggable by default.
4027 - (BOOL)mouseDownCanMoveWindow { 4027 - (BOOL)mouseDownCanMoveWindow {
4028 return YES; 4028 return YES;
4029 } 4029 }
4030 4030
4031 @end 4031 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698