| OLD | NEW |
| 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 GrTextureMaker_DEFINED | 8 #ifndef GrTextureMaker_DEFINED |
| 9 #define GrTextureMaker_DEFINED | 9 #define GrTextureMaker_DEFINED |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 * constraintRect (without considera
tion of filter | 104 * constraintRect (without considera
tion of filter |
| 105 * width, just the raw coords). | 105 * width, just the raw coords). |
| 106 * @param filterOrNullForBicubic If non-null indicates the filter
mode. If null means | 106 * @param filterOrNullForBicubic If non-null indicates the filter
mode. If null means |
| 107 * use bicubic filtering. | 107 * use bicubic filtering. |
| 108 **/ | 108 **/ |
| 109 const GrFragmentProcessor* createFragmentProcessor( | 109 const GrFragmentProcessor* createFragmentProcessor( |
| 110 const SkMatrix& textureMatrix, | 110 const SkMatrix& textureMatrix, |
| 111 const SkRect& constraintRect, | 111 const SkRect& constraintRect, |
| 112 FilterConstraint filterConstraint, | 112 FilterConstraint filterConstraint, |
| 113 bool coordsLimitedToConstraintRect, | 113 bool coordsLimitedToConstraintRect, |
| 114 const GrTextureParams::FilterMode* filterOrNullForBicubic); | 114 const GrTextureParams::FilterMode* filterOrNullForBicubic, |
| 115 GrRenderTarget* dst); |
| 115 | 116 |
| 116 GrTexture* originalTexture() const { return fOriginal; } | 117 GrTexture* originalTexture() const { return fOriginal; } |
| 117 | 118 |
| 118 void getContentArea(SkIRect* contentArea) const { | 119 void getContentArea(SkIRect* contentArea) const { |
| 119 if (fContentArea.isValid()) { | 120 if (fContentArea.isValid()) { |
| 120 *contentArea = *fContentArea.get(); | 121 *contentArea = *fContentArea.get(); |
| 121 } else { | 122 } else { |
| 122 *contentArea = SkIRect::MakeWH(fOriginal->width(), fOriginal->height
()); | 123 *contentArea = SkIRect::MakeWH(fOriginal->width(), fOriginal->height
()); |
| 123 } | 124 } |
| 124 } | 125 } |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 virtual GrTexture* generateTextureForParams(GrContext*, const CopyParams&); | 186 virtual GrTexture* generateTextureForParams(GrContext*, const CopyParams&); |
| 186 | 187 |
| 187 private: | 188 private: |
| 188 const int fWidth; | 189 const int fWidth; |
| 189 const int fHeight; | 190 const int fHeight; |
| 190 | 191 |
| 191 typedef GrTextureProducer INHERITED; | 192 typedef GrTextureProducer INHERITED; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 #endif | 195 #endif |
| OLD | NEW |