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 |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 }; | 367 }; |
368 | 368 |
369 class SkPixelRefFactory : public SkRefCnt { | 369 class SkPixelRefFactory : public SkRefCnt { |
370 public: | 370 public: |
371 /** | 371 /** |
372 * Allocate a new pixelref matching the specified ImageInfo, allocating | 372 * Allocate a new pixelref matching the specified ImageInfo, allocating |
373 * the memory for the pixels. If the ImageInfo requires a ColorTable, | 373 * the memory for the pixels. If the ImageInfo requires a ColorTable, |
374 * the pixelref will ref() the colortable. | 374 * the pixelref will ref() the colortable. |
375 * On failure return NULL. | 375 * On failure return NULL. |
376 */ | 376 */ |
377 virtual SkPixelRef* create(const SkImageInfo&, SkColorTable*) = 0; | 377 virtual SkPixelRef* create(const SkImageInfo&, size_t rowBytes, SkColorTable
*) = 0; |
378 }; | 378 }; |
379 | 379 |
380 #endif | 380 #endif |
OLD | NEW |