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

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

Issue 1291803002: Extend SkImageGenerator to support natively generated GrTextures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698