aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCanvas.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-25 23:29:53 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-03-25 23:29:53 +0000
commit2b290cec9825da11d8e09074727cfaac5eca6453 (patch)
treefadd18cee5b3a6716d45a4e9eab27b616c5351d6 /src/core/SkCanvas.cpp
parent13e6576424317c6c54323a6de34876f44112560e (diff)
Minor cleanup (moved out of main CL)
R=bsalomon@google.com Author: robertphillips@google.com Review URL: https://codereview.chromium.org/211173005 git-svn-id: http://skia.googlecode.com/svn/trunk@13949 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkCanvas.cpp')
-rw-r--r--src/core/SkCanvas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 45f5e074a9..73ea488540 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -939,8 +939,8 @@ int SkCanvas::saveLayer(const SkRect* bounds, const SkPaint* paint,
return this->internalSaveLayer(bounds, paint, flags, false, strategy);
}
-static SkBaseDevice* createCompatibleDevice(SkCanvas* canvas,
- const SkImageInfo& info) {
+static SkBaseDevice* create_compatible_device(SkCanvas* canvas,
+ const SkImageInfo& info) {
SkBaseDevice* device = canvas->getDevice();
return device ? device->createCompatibleDevice(info) : NULL;
}
@@ -988,7 +988,7 @@ int SkCanvas::internalSaveLayer(const SkRect* bounds, const SkPaint* paint, Save
SkBaseDevice* device;
if (paint && paint->getImageFilter()) {
- device = createCompatibleDevice(this, info);
+ device = create_compatible_device(this, info);
} else {
device = this->createLayerDevice(info);
}