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

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

Issue 1229413003: DelegatedFrameHost should handle satisfied sequences in frame metadata. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment stating that |satifies_sequences| is cleared on call to SwapDelegatedFrame. Created 5 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
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 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 browser_compositor_->compositor()->SetScaleAndSize( 1499 browser_compositor_->compositor()->SetScaleAndSize(
1500 scale_factor, pixel_size); 1500 scale_factor, pixel_size);
1501 } 1501 }
1502 1502
1503 SendVSyncParametersToRenderer(); 1503 SendVSyncParametersToRenderer();
1504 1504
1505 delegated_frame_host_->SwapDelegatedFrame( 1505 delegated_frame_host_->SwapDelegatedFrame(
1506 output_surface_id, 1506 output_surface_id,
1507 frame->delegated_frame_data.Pass(), 1507 frame->delegated_frame_data.Pass(),
1508 frame->metadata.device_scale_factor, 1508 frame->metadata.device_scale_factor,
1509 frame->metadata.latency_info); 1509 frame->metadata.latency_info,
1510 &frame->metadata.satisfies_sequences);
1510 } else { 1511 } else {
1511 DLOG(ERROR) << "Received unexpected frame type."; 1512 DLOG(ERROR) << "Received unexpected frame type.";
1512 bad_message::ReceivedBadMessage(render_widget_host_->GetProcess(), 1513 bad_message::ReceivedBadMessage(render_widget_host_->GetProcess(),
1513 bad_message::RWHVM_UNEXPECTED_FRAME_TYPE); 1514 bad_message::RWHVM_UNEXPECTED_FRAME_TYPE);
1514 } 1515 }
1515 } 1516 }
1516 1517
1517 void RenderWidgetHostViewMac::GetScreenInfo(blink::WebScreenInfo* results) { 1518 void RenderWidgetHostViewMac::GetScreenInfo(blink::WebScreenInfo* results) {
1518 *results = GetWebScreenInfo(GetNativeView()); 1519 *results = GetWebScreenInfo(GetNativeView());
1519 } 1520 }
(...skipping 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after
3303 3304
3304 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding 3305 // "-webkit-app-region: drag | no-drag" is implemented on Mac by excluding
3305 // regions that are not draggable. (See ControlRegionView in 3306 // regions that are not draggable. (See ControlRegionView in
3306 // native_app_window_cocoa.mm). This requires the render host view to be 3307 // native_app_window_cocoa.mm). This requires the render host view to be
3307 // draggable by default. 3308 // draggable by default.
3308 - (BOOL)mouseDownCanMoveWindow { 3309 - (BOOL)mouseDownCanMoveWindow {
3309 return YES; 3310 return YES;
3310 } 3311 }
3311 3312
3312 @end 3313 @end
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | content/renderer/child_frame_compositing_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698