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

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

Issue 742683002: cc: Small BeginFrameArgs cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying to upload again. Created 6 years, 1 month 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_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/android/build_info.h" 9 #include "base/android/build_info.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 base::TimeDelta vsync_period) { 1272 base::TimeDelta vsync_period) {
1273 TRACE_EVENT1("cc", "RenderWidgetHostViewAndroid::SendBeginFrame", 1273 TRACE_EVENT1("cc", "RenderWidgetHostViewAndroid::SendBeginFrame",
1274 "frame_time_us", frame_time.ToInternalValue()); 1274 "frame_time_us", frame_time.ToInternalValue());
1275 base::TimeTicks display_time = frame_time + vsync_period; 1275 base::TimeTicks display_time = frame_time + vsync_period;
1276 1276
1277 base::TimeTicks deadline = 1277 base::TimeTicks deadline =
1278 display_time - host_->GetEstimatedBrowserCompositeTime(); 1278 display_time - host_->GetEstimatedBrowserCompositeTime();
1279 1279
1280 host_->Send(new ViewMsg_BeginFrame( 1280 host_->Send(new ViewMsg_BeginFrame(
1281 host_->GetRoutingID(), 1281 host_->GetRoutingID(),
1282 cc::BeginFrameArgs::Create(frame_time, deadline, vsync_period))); 1282 cc::BeginFrameArgs::Create(frame_time, deadline, vsync_period,
1283 cc::BeginFrameArgs::NORMAL)));
1283 } 1284 }
1284 1285
1285 bool RenderWidgetHostViewAndroid::Animate(base::TimeTicks frame_time) { 1286 bool RenderWidgetHostViewAndroid::Animate(base::TimeTicks frame_time) {
1286 bool needs_animate = false; 1287 bool needs_animate = false;
1287 if (overscroll_controller_) { 1288 if (overscroll_controller_) {
1288 needs_animate |= overscroll_controller_->Animate( 1289 needs_animate |= overscroll_controller_->Animate(
1289 frame_time, content_view_core_->GetLayer().get()); 1290 frame_time, content_view_core_->GetLayer().get());
1290 } 1291 }
1291 if (selection_controller_) 1292 if (selection_controller_)
1292 needs_animate |= selection_controller_->Animate(frame_time); 1293 needs_animate |= selection_controller_->Animate(frame_time);
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 results->orientationAngle = display.RotationAsDegree(); 1749 results->orientationAngle = display.RotationAsDegree();
1749 results->orientationType = 1750 results->orientationType =
1750 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1751 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1751 gfx::DeviceDisplayInfo info; 1752 gfx::DeviceDisplayInfo info;
1752 results->depth = info.GetBitsPerPixel(); 1753 results->depth = info.GetBitsPerPixel();
1753 results->depthPerComponent = info.GetBitsPerComponent(); 1754 results->depthPerComponent = info.GetBitsPerComponent();
1754 results->isMonochrome = (results->depthPerComponent == 0); 1755 results->isMonochrome = (results->depthPerComponent == 0);
1755 } 1756 }
1756 1757
1757 } // namespace content 1758 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698