OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "skia/ext/platform_device.h" | 6 #include "skia/ext/platform_device.h" |
7 | 7 |
8 #include "third_party/skia/include/core/SkMetaData.h" | 8 #include "third_party/skia/include/core/SkMetaData.h" |
9 | 9 |
10 namespace skia { | 10 namespace skia { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #if defined(OS_MACOSX) || defined(OS_WIN) | 65 #if defined(OS_MACOSX) || defined(OS_WIN) |
66 void SetIsPreviewMetafile(const SkCanvas& canvas, bool is_preview) { | 66 void SetIsPreviewMetafile(const SkCanvas& canvas, bool is_preview) { |
67 SetBoolMetaData(canvas, kIsPreviewMetafileKey, is_preview); | 67 SetBoolMetaData(canvas, kIsPreviewMetafileKey, is_preview); |
68 } | 68 } |
69 | 69 |
70 bool IsPreviewMetafile(const SkCanvas& canvas) { | 70 bool IsPreviewMetafile(const SkCanvas& canvas) { |
71 return GetBoolMetaData(canvas, kIsPreviewMetafileKey); | 71 return GetBoolMetaData(canvas, kIsPreviewMetafileKey); |
72 } | 72 } |
73 #endif | 73 #endif |
74 | 74 |
| 75 int PlatformDevice::GetDefaultFlags(bool is_opaque) { |
| 76 return FLAGS_INITIALIZED | (is_opaque ? FLAGS_OPAQUE : FLAGS_NONE); |
| 77 } |
| 78 |
75 bool PlatformDevice::IsNativeFontRenderingAllowed() { | 79 bool PlatformDevice::IsNativeFontRenderingAllowed() { |
76 return true; | 80 return true; |
77 } | 81 } |
78 | 82 |
79 bool PlatformDevice::AlphaBlendUsed() const { | 83 bool PlatformDevice::AlphaBlendUsed() const { |
80 return false; | 84 return false; |
81 } | 85 } |
82 | 86 |
83 } // namespace skia | 87 } // namespace skia |
OLD | NEW |