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

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

Issue 735723005: cc: Adding creation location to debug BeginFrameArgs objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto master. Created 6 years 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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 base::TimeDelta vsync_period) { 1401 base::TimeDelta vsync_period) {
1402 TRACE_EVENT1("cc", "RenderWidgetHostViewAndroid::SendBeginFrame", 1402 TRACE_EVENT1("cc", "RenderWidgetHostViewAndroid::SendBeginFrame",
1403 "frame_time_us", frame_time.ToInternalValue()); 1403 "frame_time_us", frame_time.ToInternalValue());
1404 base::TimeTicks display_time = frame_time + vsync_period; 1404 base::TimeTicks display_time = frame_time + vsync_period;
1405 1405
1406 base::TimeTicks deadline = 1406 base::TimeTicks deadline =
1407 display_time - host_->GetEstimatedBrowserCompositeTime(); 1407 display_time - host_->GetEstimatedBrowserCompositeTime();
1408 1408
1409 host_->Send(new ViewMsg_BeginFrame( 1409 host_->Send(new ViewMsg_BeginFrame(
1410 host_->GetRoutingID(), 1410 host_->GetRoutingID(),
1411 cc::BeginFrameArgs::Create(frame_time, deadline, vsync_period, 1411 cc::BeginFrameArgs::Create(BEGINFRAME_FROM_HERE, frame_time, deadline,
1412 cc::BeginFrameArgs::NORMAL))); 1412 vsync_period, cc::BeginFrameArgs::NORMAL)));
1413 } 1413 }
1414 1414
1415 bool RenderWidgetHostViewAndroid::Animate(base::TimeTicks frame_time) { 1415 bool RenderWidgetHostViewAndroid::Animate(base::TimeTicks frame_time) {
1416 bool needs_animate = false; 1416 bool needs_animate = false;
1417 if (overscroll_controller_) { 1417 if (overscroll_controller_) {
1418 needs_animate |= overscroll_controller_->Animate( 1418 needs_animate |= overscroll_controller_->Animate(
1419 frame_time, content_view_core_->GetLayer().get()); 1419 frame_time, content_view_core_->GetLayer().get());
1420 } 1420 }
1421 if (selection_controller_) 1421 if (selection_controller_)
1422 needs_animate |= selection_controller_->Animate(frame_time); 1422 needs_animate |= selection_controller_->Animate(frame_time);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 results->orientationAngle = display.RotationAsDegree(); 1876 results->orientationAngle = display.RotationAsDegree();
1877 results->orientationType = 1877 results->orientationType =
1878 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1878 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1879 gfx::DeviceDisplayInfo info; 1879 gfx::DeviceDisplayInfo info;
1880 results->depth = info.GetBitsPerPixel(); 1880 results->depth = info.GetBitsPerPixel();
1881 results->depthPerComponent = info.GetBitsPerComponent(); 1881 results->depthPerComponent = info.GetBitsPerComponent();
1882 results->isMonochrome = (results->depthPerComponent == 0); 1882 results->isMonochrome = (results->depthPerComponent == 0);
1883 } 1883 }
1884 1884
1885 } // namespace content 1885 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698