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

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

Issue 1376603002: try texture-maker to generalize stretching for npot and min-tex-size (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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
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 "SkImageInfo.h" 12 #include "SkImageInfo.h"
13 #include "SkXfermode.h" 13 #include "SkXfermode.h"
14 14
15 class GrCaps; 15 class GrCaps;
16 class GrContext; 16 class GrContext;
17 class GrFragmentProcessor; 17 class GrFragmentProcessor;
18 class GrPaint; 18 class GrPaint;
19 class GrUniqueKey; 19 class GrUniqueKey;
20 class SkPaint; 20 class SkPaint;
21 class SkMatrix; 21 class SkMatrix;
22 struct SkIRect; 22 struct SkIRect;
23 23
24 struct SkGrStretch {
25 enum Type {
26 kNone_Type,
27 kBilerp_Type,
28 kNearest_Type
29 } fType;
30 int fWidth;
31 int fHeight;
32 };
33
24 /** 34 /**
25 * Our key includes the offset, width, and height so that bitmaps created by ex tractSubset() 35 * Our key includes the offset, width, and height so that bitmaps created by ex tractSubset()
26 * are unique. 36 * are unique.
27 * 37 *
28 * The imageID is in the shared namespace (see SkNextID::ImageID() 38 * The imageID is in the shared namespace (see SkNextID::ImageID()
29 * - SkBitmap/SkPixelRef 39 * - SkBitmap/SkPixelRef
30 * - SkImage 40 * - SkImage
31 * - SkImageGenerator 41 * - SkImageGenerator
32 * 42 *
33 * Note: width/height must fit in 16bits for this impl. 43 * Note: width/height must fit in 16bits for this impl.
(...skipping 26 matching lines...) Expand all
60 drawVertices and drawAtlas. 70 drawVertices and drawAtlas.
61 */ 71 */
62 bool SkPaintToGrPaintWithXfermode(GrContext* context, 72 bool SkPaintToGrPaintWithXfermode(GrContext* context,
63 const SkPaint& skPaint, 73 const SkPaint& skPaint,
64 const SkMatrix& viewM, 74 const SkMatrix& viewM,
65 SkXfermode::Mode primColorMode, 75 SkXfermode::Mode primColorMode,
66 bool primitiveIsSrc, 76 bool primitiveIsSrc,
67 GrPaint* grPaint); 77 GrPaint* grPaint);
68 78
69 #endif 79 #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