OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
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 #include "SkMagnifierImageFilter.h" | 8 #include "SkMagnifierImageFilter.h" |
9 | 9 |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 private: | 62 private: |
63 GrMagnifierEffect(GrTexture* texture, | 63 GrMagnifierEffect(GrTexture* texture, |
64 const SkRect& bounds, | 64 const SkRect& bounds, |
65 float xOffset, | 65 float xOffset, |
66 float yOffset, | 66 float yOffset, |
67 float xInvZoom, | 67 float xInvZoom, |
68 float yInvZoom, | 68 float yInvZoom, |
69 float xInvInset, | 69 float xInvInset, |
70 float yInvInset) | 70 float yInvInset) |
71 : INHERITED(texture, GrCoordTransform::MakeDivByTextureWHMatrix(texture)
) | 71 : INHERITED(texture, nullptr, GrCoordTransform::MakeDivByTextureWHMatrix
(texture)) |
72 , fBounds(bounds) | 72 , fBounds(bounds) |
73 , fXOffset(xOffset) | 73 , fXOffset(xOffset) |
74 , fYOffset(yOffset) | 74 , fYOffset(yOffset) |
75 , fXInvZoom(xInvZoom) | 75 , fXInvZoom(xInvZoom) |
76 , fYInvZoom(yInvZoom) | 76 , fYInvZoom(yInvZoom) |
77 , fXInvInset(xInvInset) | 77 , fXInvInset(xInvInset) |
78 , fYInvInset(yInvInset) { | 78 , fYInvInset(yInvInset) { |
79 this->initClassID<GrMagnifierEffect>(); | 79 this->initClassID<GrMagnifierEffect>(); |
80 } | 80 } |
81 | 81 |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 414 |
415 #ifndef SK_IGNORE_TO_STRING | 415 #ifndef SK_IGNORE_TO_STRING |
416 void SkMagnifierImageFilter::toString(SkString* str) const { | 416 void SkMagnifierImageFilter::toString(SkString* str) const { |
417 str->appendf("SkMagnifierImageFilter: ("); | 417 str->appendf("SkMagnifierImageFilter: ("); |
418 str->appendf("src: (%f,%f,%f,%f) ", | 418 str->appendf("src: (%f,%f,%f,%f) ", |
419 fSrcRect.fLeft, fSrcRect.fTop, fSrcRect.fRight, fSrcRect.fBotto
m); | 419 fSrcRect.fLeft, fSrcRect.fTop, fSrcRect.fRight, fSrcRect.fBotto
m); |
420 str->appendf("inset: %f", fInset); | 420 str->appendf("inset: %f", fInset); |
421 str->append(")"); | 421 str->append(")"); |
422 } | 422 } |
423 #endif | 423 #endif |
OLD | NEW |