diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 03:28:30 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-23 03:28:30 +0000 |
commit | f53351fe0b844b75a3efef4eaabb95ce74156e27 (patch) | |
tree | ae30854e37780d4586be1e6980295bb9dcd26daf | |
parent | 75ea25511f5f7a05a4d2470459b55eb5981a7f6e (diff) | |
download | chromium_src-f53351fe0b844b75a3efef4eaabb95ce74156e27.zip chromium_src-f53351fe0b844b75a3efef4eaabb95ce74156e27.tar.gz chromium_src-f53351fe0b844b75a3efef4eaabb95ce74156e27.tar.bz2 |
Remove histograms from printing/emf_win.cc.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9428046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123185 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | printing/emf_win.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc index 4cb8530..bb6e3d6 100644 --- a/printing/emf_win.cc +++ b/printing/emf_win.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -7,14 +7,11 @@ #include "base/file_path.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" -#include "base/metrics/histogram.h" -#include "base/time.h" #include "skia/ext/vector_platform_device_emf_win.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/codec/jpeg_codec.h" #include "ui/gfx/codec/png_codec.h" #include "ui/gfx/gdi_util.h" -#include "ui/gfx/point.h" #include "ui/gfx/rect.h" #include "ui/gfx/size.h" @@ -280,20 +277,14 @@ bool Emf::Record::SafePlayback(const XFORM* base_matrix) const { if (!DIBFormatNativelySupported(hdc, CHECKJPEGFORMAT, bits, bmih->biSizeImage)) { play_normally = false; - base::TimeTicks start_time = base::TimeTicks::Now(); bitmap.reset(gfx::JPEGCodec::Decode(bits, bmih->biSizeImage)); - UMA_HISTOGRAM_TIMES("Printing.JPEGDecompressTime", - base::TimeTicks::Now() - start_time); } } else if (bmih->biCompression == BI_PNG) { if (!DIBFormatNativelySupported(hdc, CHECKPNGFORMAT, bits, bmih->biSizeImage)) { play_normally = false; bitmap.reset(new SkBitmap()); - base::TimeTicks start_time = base::TimeTicks::Now(); gfx::PNGCodec::Decode(bits, bmih->biSizeImage, bitmap.get()); - UMA_HISTOGRAM_TIMES("Printing.PNGDecompressTime", - base::TimeTicks::Now() - start_time); } } if (!play_normally) { |