Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: src/gpu/SkGrPriv.h

Issue 1282363002: Use SkImageCacherator in SkImages (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix rob comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/image/SkImage.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
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 SkGrPriv_DEFINED 8 #ifndef SkGrPriv_DEFINED
9 #define SkGrPriv_DEFINED 9 #define SkGrPriv_DEFINED
10 10
11 #include "GrTypes.h" 11 #include "GrTypes.h"
12 #include "SkPoint.h" 12 #include "SkPoint.h"
13 13
14 class GrCaps; 14 class GrCaps;
15 class GrUniqueKey; 15 class GrUniqueKey;
16 16
17 /** 17 /**
18 * Our key includes the offset, width, and height so that bitmaps created by ex tractSubset() 18 * Our key includes the offset, width, and height so that bitmaps created by ex tractSubset()
19 * are unique. 19 * are unique.
20 * 20 *
21 * The imageID is in the shared namespace (see SkNextID::ImageID() 21 * The imageID is in the shared namespace (see SkNextID::ImageID()
22 * - SkBitmap/SkPixelRef 22 * - SkBitmap/SkPixelRef
23 * - SkImage 23 * - SkImage
24 * - SkImageGenerator 24 * - SkImageGenerator
25 * 25 *
26 * Note: width/height must fit in 16bits for this impl. 26 * Note: width/height must fit in 16bits for this impl.
27 */ 27 */
28 void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, 28 void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, const SkIRect& ima geBounds,
29 U16CPU width, U16CPU height, SkIPoint origin,
30 const GrCaps&, SkImageUsageType); 29 const GrCaps&, SkImageUsageType);
31 30
32 #endif 31 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698