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

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

Issue 855553002: Add more trace events to "benchmark" category (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo 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 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 1751
1752 void RenderWidgetHostViewAndroid::OnDetachCompositor() { 1752 void RenderWidgetHostViewAndroid::OnDetachCompositor() {
1753 DCHECK(content_view_core_); 1753 DCHECK(content_view_core_);
1754 DCHECK(using_browser_compositor_); 1754 DCHECK(using_browser_compositor_);
1755 RunAckCallbacks(); 1755 RunAckCallbacks();
1756 overscroll_controller_.reset(); 1756 overscroll_controller_.reset();
1757 } 1757 }
1758 1758
1759 void RenderWidgetHostViewAndroid::OnVSync(base::TimeTicks frame_time, 1759 void RenderWidgetHostViewAndroid::OnVSync(base::TimeTicks frame_time,
1760 base::TimeDelta vsync_period) { 1760 base::TimeDelta vsync_period) {
1761 TRACE_EVENT0("cc", "RenderWidgetHostViewAndroid::OnVSync"); 1761 TRACE_EVENT0("cc,benchmark", "RenderWidgetHostViewAndroid::OnVSync");
1762 if (!host_) 1762 if (!host_)
1763 return; 1763 return;
1764 1764
1765 const uint32 current_vsync_requests = outstanding_vsync_requests_; 1765 const uint32 current_vsync_requests = outstanding_vsync_requests_;
1766 outstanding_vsync_requests_ = 0; 1766 outstanding_vsync_requests_ = 0;
1767 1767
1768 if (current_vsync_requests & FLUSH_INPUT) 1768 if (current_vsync_requests & FLUSH_INPUT)
1769 host_->FlushInput(); 1769 host_->FlushInput();
1770 1770
1771 if (current_vsync_requests & BEGIN_FRAME || 1771 if (current_vsync_requests & BEGIN_FRAME ||
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 results->orientationAngle = display.RotationAsDegree(); 1922 results->orientationAngle = display.RotationAsDegree();
1923 results->orientationType = 1923 results->orientationType =
1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1925 gfx::DeviceDisplayInfo info; 1925 gfx::DeviceDisplayInfo info;
1926 results->depth = info.GetBitsPerPixel(); 1926 results->depth = info.GetBitsPerPixel();
1927 results->depthPerComponent = info.GetBitsPerComponent(); 1927 results->depthPerComponent = info.GetBitsPerComponent();
1928 results->isMonochrome = (results->depthPerComponent == 0); 1928 results->isMonochrome = (results->depthPerComponent == 0);
1929 } 1929 }
1930 1930
1931 } // namespace content 1931 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698