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 "SkDevice.h" | 12 #include "SkDevice.h" |
13 | 13 |
14 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
15 class SK_API SkBitmapDevice : public SkBaseDevice { | 15 class SK_API SkBitmapDevice : public SkBaseDevice { |
16 public: | 16 public: |
17 SK_DECLARE_INST_COUNT(SkBitmapDevice) | |
18 | |
19 /** | 17 /** |
20 * Construct a new device with the specified bitmap as its backend. It is | 18 * Construct a new device with the specified bitmap as its backend. It is |
21 * valid for the bitmap to have no pixels associated with it. In that case, | 19 * valid for the bitmap to have no pixels associated with it. In that case, |
22 * any drawing to this device will have no effect. | 20 * any drawing to this device will have no effect. |
23 */ | 21 */ |
24 SkBitmapDevice(const SkBitmap& bitmap); | 22 SkBitmapDevice(const SkBitmap& bitmap); |
25 | 23 |
26 /** | 24 /** |
27 * Create a new device along with its requisite pixel memory using | 25 * Create a new device along with its requisite pixel memory using |
28 * default SkSurfaceProps (i.e., kLegacyFontHost_InitType-style). | 26 * default SkSurfaceProps (i.e., kLegacyFontHost_InitType-style). |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 SkImageFilter::Cache* getImageFilterCache() override; | 146 SkImageFilter::Cache* getImageFilterCache() override; |
149 | 147 |
150 SkBitmap fBitmap; | 148 SkBitmap fBitmap; |
151 | 149 |
152 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). | 150 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). |
153 | 151 |
154 typedef SkBaseDevice INHERITED; | 152 typedef SkBaseDevice INHERITED; |
155 }; | 153 }; |
156 | 154 |
157 #endif // SkBitmapDevice_DEFINED | 155 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |