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

Side by Side Diff: include/gpu/SkGr.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Style changes based on CL feedback. Created 5 years, 5 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 U8CPU a = SkColorGetA(c); 65 U8CPU a = SkColorGetA(c);
66 return GrColorPackRGBA(a, a, a, a); 66 return GrColorPackRGBA(a, a, a, a);
67 } 67 }
68 68
69 //////////////////////////////////////////////////////////////////////////////// 69 ////////////////////////////////////////////////////////////////////////////////
70 70
71 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* ); 71 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* );
72 72
73 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*); 73 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*);
74 74
75 GrTexture* GrMipmapTexture(GrContext*, const SkBitmap&, SkDiscardableFactoryProc , const GrTextureParams*);
76
75 //////////////////////////////////////////////////////////////////////////////// 77 ////////////////////////////////////////////////////////////////////////////////
76 78
77 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. 79 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
78 // Sets the color of GrPaint to the value of the parameter paintColor 80 // Sets the color of GrPaint to the value of the parameter paintColor
79 // Callers may subsequently modify the GrPaint. Setting constantColor indicates 81 // Callers may subsequently modify the GrPaint. Setting constantColor indicates
80 // that the final paint will draw the same color at every pixel. This allows 82 // that the final paint will draw the same color at every pixel. This allows
81 // an optimization where the color filter can be applied to the SkPaint's 83 // an optimization where the color filter can be applied to the SkPaint's
82 // color once while converting to GrPaint and then ignored. TODO: Remove this 84 // color once while converting to GrPaint and then ignored. TODO: Remove this
83 // bool and use the invariant info to automatically apply the color filter. 85 // bool and use the invariant info to automatically apply the color filter.
84 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint, 86 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint& skPaint,
(...skipping 12 matching lines...) Expand all
97 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap * dst); 99 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap * dst);
98 100
99 //////////////////////////////////////////////////////////////////////////////// 101 ////////////////////////////////////////////////////////////////////////////////
100 // Classes 102 // Classes
101 103
102 class SkGlyphCache; 104 class SkGlyphCache;
103 105
104 //////////////////////////////////////////////////////////////////////////////// 106 ////////////////////////////////////////////////////////////////////////////////
105 107
106 #endif 108 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698