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

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

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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/GrTextureAccess.cpp ('k') | src/gpu/GrTextureParamsAdjuster.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 * 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrTextureAccess.cpp ('k') | src/gpu/GrTextureParamsAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698