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

Side by Side Diff: media/base/pipeline_status.cc

Issue 10582026: Add UMA reporting for GpuVideoDecoder::Initialize status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « media/base/pipeline_status.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "media/base/pipeline_status.h"
6
7 #include "base/bind.h"
8 #include "base/metrics/histogram.h"
9
10 namespace media {
11
12 static void ReportAndRun(const std::string& name,
13 const PipelineStatusCB& cb,
14 PipelineStatus status) {
15 UMA_HISTOGRAM_ENUMERATION(name, status, PIPELINE_STATUS_MAX);
16 cb.Run(status);
17 }
18
19 PipelineStatusCB CreateUMAReportingPipelineCB(const std::string& name,
20 const PipelineStatusCB& cb) {
21 return base::Bind(&ReportAndRun, name, cb);
22 }
23
24 } // namespace media
OLDNEW
« no previous file with comments | « media/base/pipeline_status.h ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698