diff options
-rw-r--r-- | src/gpu/v1/Device.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gpu/v1/Device.cpp b/src/gpu/v1/Device.cpp index a0a4728af1..bc2593347b 100644 --- a/src/gpu/v1/Device.cpp +++ b/src/gpu/v1/Device.cpp @@ -409,15 +409,6 @@ void Device::drawPoints(SkCanvas::PointMode mode, GrPrimitiveType primitiveType = point_mode_to_primitive_type(mode); const SkMatrixProvider* matrixProvider = this; -#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK - SkTLazy<SkPostTranslateMatrixProvider> postTranslateMatrixProvider; - // This offsetting in device space matches the expectations of the Android framework for non-AA - // points and lines. - if (GrIsPrimTypeLines(primitiveType) || GrPrimitiveType::kPoints == primitiveType) { - static const SkScalar kOffset = 0.063f; // Just greater than 1/16. - matrixProvider = postTranslateMatrixProvider.init(*matrixProvider, kOffset, kOffset); - } -#endif GrPaint grPaint; if (!SkPaintToGrPaint(this->recordingContext(), fSurfaceDrawContext->colorInfo(), paint, |