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

Side by Side Diff: cc/resources/tile_manager.cc

Issue 484603006: Add LOCAL_ prefix to non-UMA histogram macros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 6 years, 4 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
« no previous file with comments | « base/metrics/statistics_recorder_unittest.cc ('k') | chrome/browser/chrome_browser_main_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/resources/tile_manager.h" 5 #include "cc/resources/tile_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // before we draw and sometimes they aren't) 145 // before we draw and sometimes they aren't)
146 RenderingStatsInstrumentation* stats = 146 RenderingStatsInstrumentation* stats =
147 tile_resolution_ == HIGH_RESOLUTION ? rendering_stats_ : NULL; 147 tile_resolution_ == HIGH_RESOLUTION ? rendering_stats_ : NULL;
148 DCHECK(picture_pile); 148 DCHECK(picture_pile);
149 picture_pile->RasterToBitmap( 149 picture_pile->RasterToBitmap(
150 canvas_, content_rect_, contents_scale_, stats); 150 canvas_, content_rect_, contents_scale_, stats);
151 151
152 if (rendering_stats_->record_rendering_stats()) { 152 if (rendering_stats_->record_rendering_stats()) {
153 base::TimeDelta current_rasterize_time = 153 base::TimeDelta current_rasterize_time =
154 rendering_stats_->impl_thread_rendering_stats().rasterize_time; 154 rendering_stats_->impl_thread_rendering_stats().rasterize_time;
155 HISTOGRAM_CUSTOM_COUNTS( 155 LOCAL_HISTOGRAM_CUSTOM_COUNTS(
156 "Renderer4.PictureRasterTimeUS", 156 "Renderer4.PictureRasterTimeUS",
157 (current_rasterize_time - prev_rasterize_time).InMicroseconds(), 157 (current_rasterize_time - prev_rasterize_time).InMicroseconds(),
158 0, 158 0,
159 100000, 159 100000,
160 100); 160 100);
161 } 161 }
162 } 162 }
163 163
164 PicturePileImpl::Analysis analysis_; 164 PicturePileImpl::Analysis analysis_;
165 scoped_refptr<PicturePileImpl> picture_pile_; 165 scoped_refptr<PicturePileImpl> picture_pile_;
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1169 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate"); 1169 TRACE_EVENT0("cc", "TileManager::CheckIfReadyToActivate");
1170 1170
1171 rasterizer_->CheckForCompletedTasks(); 1171 rasterizer_->CheckForCompletedTasks();
1172 did_check_for_completed_tasks_since_last_schedule_tasks_ = true; 1172 did_check_for_completed_tasks_since_last_schedule_tasks_ = true;
1173 1173
1174 if (IsReadyToActivate()) 1174 if (IsReadyToActivate())
1175 client_->NotifyReadyToActivate(); 1175 client_->NotifyReadyToActivate();
1176 } 1176 }
1177 1177
1178 } // namespace cc 1178 } // namespace cc
OLDNEW
« no previous file with comments | « base/metrics/statistics_recorder_unittest.cc ('k') | chrome/browser/chrome_browser_main_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698