OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkGrPriv_DEFINED |
| 9 #define SkGrPriv_DEFINED |
| 10 |
| 11 #include "GrTypes.h" |
| 12 #include "SkPoint.h" |
| 13 |
| 14 class GrCaps; |
| 15 class GrUniqueKey; |
| 16 |
| 17 /** |
| 18 * Our key includes the offset, width, and height so that bitmaps created by ex
tractSubset() |
| 19 * are unique. |
| 20 * |
| 21 * The imageID is in the shared namespace (see SkNextID::ImageID() |
| 22 * - SkBitmap/SkPixelRef |
| 23 * - SkImage |
| 24 * - SkImageGenerator |
| 25 * |
| 26 * Note: width/height must fit in 16bits for this impl. |
| 27 */ |
| 28 void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, |
| 29 U16CPU width, U16CPU height, SkIPoint origin, |
| 30 const GrCaps&, SkImageUsageType); |
| 31 |
| 32 #endif |
OLD | NEW |