| 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 |
| 11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
| 12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
| 13 #include "SkCanvas.h" | 13 #include "SkCanvas.h" |
| 14 #include "SkColor.h" | 14 #include "SkColor.h" |
| 15 #include "SkImageFilter.h" | 15 #include "SkImageFilter.h" |
| 16 #include "SkSurfaceProps.h" | 16 #include "SkSurfaceProps.h" |
| 17 | 17 |
| 18 class SkClipStack; | 18 class SkClipStack; |
| 19 class SkDraw; | 19 class SkDraw; |
| 20 class SkDrawFilter; | 20 class SkDrawFilter; |
| 21 struct SkIRect; | 21 struct SkIRect; |
| 22 class SkMatrix; | 22 class SkMatrix; |
| 23 class SkMetaData; | 23 class SkMetaData; |
| 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) | |
| 30 | |
| 31 /** | 29 /** |
| 32 * Construct a new device. | 30 * Construct a new device. |
| 33 */ | 31 */ |
| 34 explicit SkBaseDevice(const SkSurfaceProps&); | 32 explicit SkBaseDevice(const SkSurfaceProps&); |
| 35 virtual ~SkBaseDevice(); | 33 virtual ~SkBaseDevice(); |
| 36 | 34 |
| 37 SkMetaData& getMetaData(); | 35 SkMetaData& getMetaData(); |
| 38 | 36 |
| 39 /** | 37 /** |
| 40 * Return ImageInfo for this device. If the canvas is not backed by pixels | 38 * Return ImageInfo for this device. If the canvas is not backed by pixels |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 SkSurfaceProps fSurfaceProps; | 400 SkSurfaceProps fSurfaceProps; |
| 403 | 401 |
| 404 #ifdef SK_DEBUG | 402 #ifdef SK_DEBUG |
| 405 bool fAttachedToCanvas; | 403 bool fAttachedToCanvas; |
| 406 #endif | 404 #endif |
| 407 | 405 |
| 408 typedef SkRefCnt INHERITED; | 406 typedef SkRefCnt INHERITED; |
| 409 }; | 407 }; |
| 410 | 408 |
| 411 #endif | 409 #endif |
| OLD | NEW |