| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkCanvas_DEFINED | 10 #ifndef SkCanvas_DEFINED |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 * is drawn to, but is optional here, as there is a small perf hit | 99 * is drawn to, but is optional here, as there is a small perf hit |
| 100 * sometimes. | 100 * sometimes. |
| 101 */ | 101 */ |
| 102 SkDevice* getTopDevice(bool updateMatrixClip = false) const; | 102 SkDevice* getTopDevice(bool updateMatrixClip = false) const; |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Shortcut for getDevice()->createCompatibleDevice(...). | 105 * Shortcut for getDevice()->createCompatibleDevice(...). |
| 106 * If getDevice() == NULL, this method does nothing, and returns NULL. | 106 * If getDevice() == NULL, this method does nothing, and returns NULL. |
| 107 */ | 107 */ |
| 108 SkDevice* createCompatibleDevice(SkBitmap::Config config, | 108 SkDevice* createCompatibleDevice(SkBitmap::Config config, |
| 109 int width, int height, | 109 int width, int height, |
| 110 bool isOpaque); | 110 bool isOpaque); |
| 111 | 111 |
| 112 /////////////////////////////////////////////////////////////////////////// | 112 /////////////////////////////////////////////////////////////////////////// |
| 113 | 113 |
| 114 /** | 114 /** |
| 115 * This enum can be used with read/writePixels to perform a pixel ops to or | 115 * This enum can be used with read/writePixels to perform a pixel ops to or |
| 116 * from an 8888 config other than Skia's native config (SkPMColor). There | 116 * from an 8888 config other than Skia's native config (SkPMColor). There |
| 117 * are three byte orders supported: native, BGRA, and RGBA. Each has a | 117 * are three byte orders supported: native, BGRA, and RGBA. Each has a |
| 118 * premultiplied and unpremultiplied variant. | 118 * premultiplied and unpremultiplied variant. |
| 119 * | 119 * |
| 120 * Components of a 8888 pixel can be packed/unpacked from a 32bit word using | 120 * Components of a 8888 pixel can be packed/unpacked from a 32bit word using |
| (...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 if (NULL != fCanvas) { | 1176 if (NULL != fCanvas) { |
| 1177 fCanvas->endCommentGroup(); | 1177 fCanvas->endCommentGroup(); |
| 1178 } | 1178 } |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 private: | 1181 private: |
| 1182 SkCanvas* fCanvas; | 1182 SkCanvas* fCanvas; |
| 1183 }; | 1183 }; |
| 1184 | 1184 |
| 1185 #endif | 1185 #endif |
| OLD | NEW |