OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
11 | 11 |
| 12 #include "SkBitmap.h" |
| 13 #include "SkCanvas.h" |
| 14 #include "SkColor.h" |
12 #include "SkDevice.h" | 15 #include "SkDevice.h" |
| 16 #include "SkImageFilter.h" |
| 17 #include "SkImageInfo.h" |
| 18 #include "SkRect.h" |
| 19 #include "SkScalar.h" |
| 20 #include "SkSize.h" |
| 21 #include "SkSurfaceProps.h" |
| 22 #include "SkTypes.h" |
| 23 |
| 24 class SkDraw; |
| 25 class SkMatrix; |
| 26 class SkPaint; |
| 27 class SkPath; |
| 28 class SkPixelRef; |
| 29 class SkPixmap; |
| 30 class SkRRect; |
| 31 class SkSurface; |
| 32 class SkXfermode; |
| 33 struct SkPoint; |
13 | 34 |
14 /////////////////////////////////////////////////////////////////////////////// | 35 /////////////////////////////////////////////////////////////////////////////// |
15 class SK_API SkBitmapDevice : public SkBaseDevice { | 36 class SK_API SkBitmapDevice : public SkBaseDevice { |
16 public: | 37 public: |
17 /** | 38 /** |
18 * Construct a new device with the specified bitmap as its backend. It is | 39 * Construct a new device with the specified bitmap as its backend. It is |
19 * valid for the bitmap to have no pixels associated with it. In that case, | 40 * valid for the bitmap to have no pixels associated with it. In that case, |
20 * any drawing to this device will have no effect. | 41 * any drawing to this device will have no effect. |
21 */ | 42 */ |
22 SkBitmapDevice(const SkBitmap& bitmap); | 43 SkBitmapDevice(const SkBitmap& bitmap); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 SkImageFilter::Cache* getImageFilterCache() override; | 165 SkImageFilter::Cache* getImageFilterCache() override; |
145 | 166 |
146 SkBitmap fBitmap; | 167 SkBitmap fBitmap; |
147 | 168 |
148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). | 169 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). |
149 | 170 |
150 typedef SkBaseDevice INHERITED; | 171 typedef SkBaseDevice INHERITED; |
151 }; | 172 }; |
152 | 173 |
153 #endif // SkBitmapDevice_DEFINED | 174 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |