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

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

Issue 1285283002: Refactor helper function for SkBitmapShader to GrFragmentProcessor (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 | « no previous file | src/core/SkBitmapProcShader.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 /* 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
11 #ifndef SkGr_DEFINED 11 #ifndef SkGr_DEFINED
12 #define SkGr_DEFINED 12 #define SkGr_DEFINED
13 13
14 #include <stddef.h> 14 #include <stddef.h>
15 15
16 // Gr headers 16 // Gr headers
17 #include "GrContext.h"
18 #include "GrTextureAccess.h"
17 #include "GrTypes.h" 19 #include "GrTypes.h"
18 #include "GrContext.h"
19 20
20 // skia headers 21 // skia headers
21 #include "SkBitmap.h" 22 #include "SkBitmap.h"
22 #include "SkPath.h" 23 #include "SkPath.h"
23 #include "SkPoint.h" 24 #include "SkPoint.h"
24 #include "SkRegion.h" 25 #include "SkRegion.h"
25 #include "SkClipStack.h" 26 #include "SkClipStack.h"
26 27
27 //////////////////////////////////////////////////////////////////////////////// 28 ////////////////////////////////////////////////////////////////////////////////
28 // Sk to Gr Type conversions 29 // Sk to Gr Type conversions
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // constantColor has the same meaning as in skPaint2GrPaintNoShader. 90 // constantColor has the same meaning as in skPaint2GrPaintNoShader.
90 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint , 91 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint ,
91 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint ); 92 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint );
92 93
93 94
94 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); 95 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque);
95 96
96 // Using the dreaded SkGrPixelRef ... 97 // Using the dreaded SkGrPixelRef ...
97 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap * dst); 98 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap * dst);
98 99
100 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain tFilterQuality,
101 const SkMatrix& view M,
102 const SkMatrix& loca lM,
103 bool* doBicubic);
104
99 //////////////////////////////////////////////////////////////////////////////// 105 ////////////////////////////////////////////////////////////////////////////////
100 // Classes 106 // Classes
101 107
102 class SkGlyphCache; 108 class SkGlyphCache;
103 109
104 //////////////////////////////////////////////////////////////////////////////// 110 ////////////////////////////////////////////////////////////////////////////////
105 111
106 #endif 112 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698