diff options
author | Nico Weber <thakis@chromium.org> | 2015-11-20 14:19:58 -0800 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-11-20 22:21:57 +0000 |
commit | 29623f15f93140805385e3c328339c7919e5f2e2 (patch) | |
tree | 3d013434f641cd1a8c9ce89ec996e95179cfdf5a /skia | |
parent | 7950ba2733bddc2498f01733a8224bfe5d828899 (diff) | |
download | chromium_src-29623f15f93140805385e3c328339c7919e5f2e2.zip chromium_src-29623f15f93140805385e3c328339c7919e5f2e2.tar.gz chromium_src-29623f15f93140805385e3c328339c7919e5f2e2.tar.bz2 |
Fix build after https://codereview.chromium.org/1457033002
..\..\skia\ext\platform_device.cc(20,6) : error: unused function 'SetBoolMetaData' [-Werror,-Wunused-function]
void SetBoolMetaData(const SkCanvas& canvas, const char* key, bool value) {
^
..\..\skia\ext\platform_device.cc(25,6) : error: unused function 'GetBoolMetaData' [-Werror,-Wunused-function]
bool GetBoolMetaData(const SkCanvas& canvas, const char* key) {
^
BUG=82385
TBR=tomhudson
Review URL: https://codereview.chromium.org/1464783003 .
Cr-Commit-Position: refs/heads/master@{#360930}
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/platform_device.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/skia/ext/platform_device.cc b/skia/ext/platform_device.cc index 5b64ae3..e13e1dc 100644 --- a/skia/ext/platform_device.cc +++ b/skia/ext/platform_device.cc @@ -15,7 +15,6 @@ const char kDevicePlatformBehaviour[] = "CrDevicePlatformBehaviour"; #if defined(OS_MACOSX) const char kIsPreviewMetafileKey[] = "CrIsPreviewMetafile"; -#endif void SetBoolMetaData(const SkCanvas& canvas, const char* key, bool value) { SkMetaData& meta = skia::getMetaData(canvas); @@ -29,10 +28,12 @@ bool GetBoolMetaData(const SkCanvas& canvas, const char* key) { value = false; return value; } +#endif } // namespace -void SetPlatformDevice(SkBaseDevice* device, PlatformDevice* platform_behaviour) { +void SetPlatformDevice(SkBaseDevice* device, + PlatformDevice* platform_behaviour) { SkMetaData& meta_data = device->getMetaData(); meta_data.setPtr(kDevicePlatformBehaviour, platform_behaviour); } |