aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/BitmapRegionDecoderBench.cpp
diff options
context:
space:
mode:
authorGravatar msarett <msarett@google.com>2015-11-06 08:56:32 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-06 08:56:32 -0800
commit5cb4885b4cd1ac5eb3fc92dac5f5509d7c810464 (patch)
tree8edcbfa75ec122129136503140a85a2b55bdc6e5 /bench/BitmapRegionDecoderBench.cpp
parentaa4ba90792a99eed96ac51006bd478d453a751c4 (diff)
Rename SkBitmapRegionDecoder and Create function
We no longer need to worry about namespace conflicts SkBitmapRegionDecoder in Android (which we are replacing). Additionally, the static Create() function does not need to repeat the name BitmapRegionDecoder. BUG=skia: Review URL: https://codereview.chromium.org/1415243007
Diffstat (limited to 'bench/BitmapRegionDecoderBench.cpp')
-rw-r--r--bench/BitmapRegionDecoderBench.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/bench/BitmapRegionDecoderBench.cpp b/bench/BitmapRegionDecoderBench.cpp
index 70e3e760e0..1d2a0b91f7 100644
--- a/bench/BitmapRegionDecoderBench.cpp
+++ b/bench/BitmapRegionDecoderBench.cpp
@@ -12,7 +12,7 @@
#include "SkOSFile.h"
BitmapRegionDecoderBench::BitmapRegionDecoderBench(const char* baseName, SkData* encoded,
- SkBitmapRegionDecoderInterface::Strategy strategy, SkColorType colorType,
+ SkBitmapRegionDecoder::Strategy strategy, SkColorType colorType,
uint32_t sampleSize, const SkIRect& subset)
: fBRD(nullptr)
, fData(SkRef(encoded))
@@ -24,13 +24,13 @@ BitmapRegionDecoderBench::BitmapRegionDecoderBench(const char* baseName, SkData*
// Choose a useful name for the region decoding strategy
const char* strategyName;
switch (strategy) {
- case SkBitmapRegionDecoderInterface::kOriginal_Strategy:
+ case SkBitmapRegionDecoder::kOriginal_Strategy:
strategyName = "Original";
break;
- case SkBitmapRegionDecoderInterface::kCanvas_Strategy:
+ case SkBitmapRegionDecoder::kCanvas_Strategy:
strategyName = "Canvas";
break;
- case SkBitmapRegionDecoderInterface::kAndroidCodec_Strategy:
+ case SkBitmapRegionDecoder::kAndroidCodec_Strategy:
strategyName = "AndroidCodec";
break;
default:
@@ -57,7 +57,7 @@ bool BitmapRegionDecoderBench::isSuitableFor(Backend backend) {
}
void BitmapRegionDecoderBench::onDelayedSetup() {
- fBRD.reset(SkBitmapRegionDecoderInterface::CreateBitmapRegionDecoder(fData, fStrategy));
+ fBRD.reset(SkBitmapRegionDecoder::Create(fData, fStrategy));
}
void BitmapRegionDecoderBench::onDraw(int n, SkCanvas* canvas) {