summaryrefslogtreecommitdiffstats
path: root/cc/throttled_texture_uploader.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 08:13:51 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-18 08:13:51 +0000
commit6a144160dfb2945b0099071662d2dd392594a24f (patch)
tree0a01d645fbbd22e2ce3a2d5c47c5501ae3e932a2 /cc/throttled_texture_uploader.cc
parent74b81dae8774b9f3888ef2aede971f5eb009cce5 (diff)
downloadchromium_src-6a144160dfb2945b0099071662d2dd392594a24f.zip
chromium_src-6a144160dfb2945b0099071662d2dd392594a24f.tar.gz
chromium_src-6a144160dfb2945b0099071662d2dd392594a24f.tar.bz2
Use base/metrics/histogram.h instead of WebKit::Platform::histogramCustomCounts in cc
The base/ macros are chromium style and marginally more efficient since the histogram bucket lookup is cached in a static local. This produced yet more LOG vs LOG collisions. I rewrote the LayerSorter's logging from WTF channels to use VLOG - it can be turned on by adding "--vmodule=layer_sorter=2" to the command line. BUG=154451,144577 Review URL: https://chromiumcodereview.appspot.com/11209002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/throttled_texture_uploader.cc')
-rw-r--r--cc/throttled_texture_uploader.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/throttled_texture_uploader.cc b/cc/throttled_texture_uploader.cc
index f2e95ce..fab8e3d 100644
--- a/cc/throttled_texture_uploader.cc
+++ b/cc/throttled_texture_uploader.cc
@@ -8,8 +8,8 @@
#include "CCPrioritizedTexture.h"
#include "Extensions3DChromium.h"
#include "TraceEvent.h"
+#include "base/metrics/histogram.h"
#include <algorithm>
-#include <public/Platform.h>
#include <public/WebGraphicsContext3D.h>
#include <vector>
@@ -184,7 +184,7 @@ void ThrottledTextureUploader::processQueries()
break;
unsigned usElapsed = m_pendingQueries.first()->value();
- WebKit::Platform::current()->histogramCustomCounts("Renderer4.TextureGpuUploadTimeUS", usElapsed, 0, 100000, 50);
+ HISTOGRAM_CUSTOM_COUNTS("Renderer4.TextureGpuUploadTimeUS", usElapsed, 0, 100000, 50);
if (!m_pendingQueries.first()->isNonBlocking())
m_numBlockingTextureUploads--;