| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |