| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 The Android Open Source Project | 2 * Copyright 2008 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 SkPixelRef_DEFINED | 8 #ifndef SkPixelRef_DEFINED |
| 9 #define SkPixelRef_DEFINED | 9 #define SkPixelRef_DEFINED |
| 10 | 10 |
| 11 #include "../private/SkAtomics.h" | 11 #include "../private/SkAtomics.h" |
| 12 #include "../private/SkMutex.h" |
| 13 #include "../private/SkTDArray.h" |
| 12 #include "SkBitmap.h" | 14 #include "SkBitmap.h" |
| 13 #include "SkFilterQuality.h" | 15 #include "SkFilterQuality.h" |
| 14 #include "SkImageInfo.h" | 16 #include "SkImageInfo.h" |
| 15 #include "../private/SkMutex.h" | |
| 16 #include "SkPixmap.h" | 17 #include "SkPixmap.h" |
| 17 #include "SkRefCnt.h" | 18 #include "SkRefCnt.h" |
| 18 #include "SkSize.h" | 19 #include "SkSize.h" |
| 19 #include "SkString.h" | 20 #include "SkString.h" |
| 20 #include "SkTDArray.h" | |
| 21 | 21 |
| 22 class SkColorTable; | 22 class SkColorTable; |
| 23 class SkData; | 23 class SkData; |
| 24 struct SkIRect; | 24 struct SkIRect; |
| 25 | 25 |
| 26 class GrTexture; | 26 class GrTexture; |
| 27 class SkDiscardableMemory; | 27 class SkDiscardableMemory; |
| 28 | 28 |
| 29 /** \class SkPixelRef | 29 /** \class SkPixelRef |
| 30 | 30 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 /** | 400 /** |
| 401 * Allocate a new pixelref matching the specified ImageInfo, allocating | 401 * Allocate a new pixelref matching the specified ImageInfo, allocating |
| 402 * the memory for the pixels. If the ImageInfo requires a ColorTable, | 402 * the memory for the pixels. If the ImageInfo requires a ColorTable, |
| 403 * the pixelref will ref() the colortable. | 403 * the pixelref will ref() the colortable. |
| 404 * On failure return NULL. | 404 * On failure return NULL. |
| 405 */ | 405 */ |
| 406 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable
*) = 0; | 406 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable
*) = 0; |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 #endif | 409 #endif |
| OLD | NEW |