OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDevice_DEFINED | 8 #ifndef SkDevice_DEFINED |
9 #define SkDevice_DEFINED | 9 #define SkDevice_DEFINED |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 class SkRegion; | 24 class SkRegion; |
25 class GrRenderTarget; | 25 class GrRenderTarget; |
26 | 26 |
27 class SK_API SkBaseDevice : public SkRefCnt { | 27 class SK_API SkBaseDevice : public SkRefCnt { |
28 public: | 28 public: |
29 SK_DECLARE_INST_COUNT(SkBaseDevice) | 29 SK_DECLARE_INST_COUNT(SkBaseDevice) |
30 | 30 |
31 /** | 31 /** |
32 * Construct a new device. | 32 * Construct a new device. |
33 */ | 33 */ |
34 SkBaseDevice(); | |
35 explicit SkBaseDevice(const SkSurfaceProps&); | 34 explicit SkBaseDevice(const SkSurfaceProps&); |
36 virtual ~SkBaseDevice(); | 35 virtual ~SkBaseDevice(); |
37 | 36 |
38 SkMetaData& getMetaData(); | 37 SkMetaData& getMetaData(); |
39 | 38 |
40 /** | 39 /** |
41 * Return ImageInfo for this device. If the canvas is not backed by pixels | 40 * Return ImageInfo for this device. If the canvas is not backed by pixels |
42 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. | 41 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. |
43 */ | 42 */ |
44 virtual SkImageInfo imageInfo() const; | 43 virtual SkImageInfo imageInfo() const; |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 SkSurfaceProps fSurfaceProps; | 395 SkSurfaceProps fSurfaceProps; |
397 | 396 |
398 #ifdef SK_DEBUG | 397 #ifdef SK_DEBUG |
399 bool fAttachedToCanvas; | 398 bool fAttachedToCanvas; |
400 #endif | 399 #endif |
401 | 400 |
402 typedef SkRefCnt INHERITED; | 401 typedef SkRefCnt INHERITED; |
403 }; | 402 }; |
404 | 403 |
405 #endif | 404 #endif |
OLD | NEW |