OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 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 SkDevice_DEFINED | 10 #ifndef SkDevice_DEFINED |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 * draw into this device such that all of the pixels will | 52 * draw into this device such that all of the pixels will |
53 * be opaque. | 53 * be opaque. |
54 */ | 54 */ |
55 SkBaseDevice* createCompatibleDevice(SkBitmap::Config config, | 55 SkBaseDevice* createCompatibleDevice(SkBitmap::Config config, |
56 int width, int height, | 56 int width, int height, |
57 bool isOpaque); | 57 bool isOpaque); |
58 | 58 |
59 SkMetaData& getMetaData(); | 59 SkMetaData& getMetaData(); |
60 | 60 |
61 enum Capabilities { | 61 enum Capabilities { |
62 kGL_Capability = 0x1, //!< mask indicating GL support | 62 kVector_Capability = 0x1, //!< mask indicating a vector representation |
63 kVector_Capability = 0x2, //!< mask indicating a vector representation | |
64 kAll_Capabilities = 0x3 | |
65 }; | 63 }; |
66 virtual uint32_t getDeviceCapabilities() = 0; | 64 virtual uint32_t getDeviceCapabilities() = 0; |
67 | 65 |
68 /** Return the width of the device (in pixels). | 66 /** Return the width of the device (in pixels). |
69 */ | 67 */ |
70 virtual int width() const = 0; | 68 virtual int width() const = 0; |
71 /** Return the height of the device (in pixels). | 69 /** Return the height of the device (in pixels). |
72 */ | 70 */ |
73 virtual int height() const = 0; | 71 virtual int height() const = 0; |
74 | 72 |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 SkMetaData* fMetaData; | 414 SkMetaData* fMetaData; |
417 | 415 |
418 #ifdef SK_DEBUG | 416 #ifdef SK_DEBUG |
419 bool fAttachedToCanvas; | 417 bool fAttachedToCanvas; |
420 #endif | 418 #endif |
421 | 419 |
422 typedef SkRefCnt INHERITED; | 420 typedef SkRefCnt INHERITED; |
423 }; | 421 }; |
424 | 422 |
425 #endif | 423 #endif |
OLD | NEW |