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

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

Issue 874283004: Reland: Add more trace events to "benchmark" category (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_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 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 1769
1770 void RenderWidgetHostViewAndroid::OnDetachCompositor() { 1770 void RenderWidgetHostViewAndroid::OnDetachCompositor() {
1771 DCHECK(content_view_core_); 1771 DCHECK(content_view_core_);
1772 DCHECK(using_browser_compositor_); 1772 DCHECK(using_browser_compositor_);
1773 RunAckCallbacks(); 1773 RunAckCallbacks();
1774 overscroll_controller_.reset(); 1774 overscroll_controller_.reset();
1775 } 1775 }
1776 1776
1777 void RenderWidgetHostViewAndroid::OnVSync(base::TimeTicks frame_time, 1777 void RenderWidgetHostViewAndroid::OnVSync(base::TimeTicks frame_time,
1778 base::TimeDelta vsync_period) { 1778 base::TimeDelta vsync_period) {
1779 TRACE_EVENT0("cc", "RenderWidgetHostViewAndroid::OnVSync"); 1779 TRACE_EVENT0("cc,benchmark", "RenderWidgetHostViewAndroid::OnVSync");
1780 if (!host_) 1780 if (!host_)
1781 return; 1781 return;
1782 1782
1783 const uint32 current_vsync_requests = outstanding_vsync_requests_; 1783 const uint32 current_vsync_requests = outstanding_vsync_requests_;
1784 outstanding_vsync_requests_ = 0; 1784 outstanding_vsync_requests_ = 0;
1785 1785
1786 if (current_vsync_requests & FLUSH_INPUT) 1786 if (current_vsync_requests & FLUSH_INPUT)
1787 host_->FlushInput(); 1787 host_->FlushInput();
1788 1788
1789 if (current_vsync_requests & BEGIN_FRAME || 1789 if (current_vsync_requests & BEGIN_FRAME ||
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1940 results->orientationAngle = display.RotationAsDegree(); 1940 results->orientationAngle = display.RotationAsDegree();
1941 results->orientationType = 1941 results->orientationType =
1942 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1942 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1943 gfx::DeviceDisplayInfo info; 1943 gfx::DeviceDisplayInfo info;
1944 results->depth = info.GetBitsPerPixel(); 1944 results->depth = info.GetBitsPerPixel();
1945 results->depthPerComponent = info.GetBitsPerComponent(); 1945 results->depthPerComponent = info.GetBitsPerComponent();
1946 results->isMonochrome = (results->depthPerComponent == 0); 1946 results->isMonochrome = (results->depthPerComponent == 0);
1947 } 1947 }
1948 1948
1949 } // namespace content 1949 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.cc ('k') | content/renderer/input/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698