diff options
author | Leon Scroggins III <scroggo@google.com> | 2019-01-31 10:06:12 -0500 |
---|---|---|
committer | Leon Scroggins III <scroggo@google.com> | 2019-01-31 14:25:32 -0500 |
commit | 124975791084a660c32645260c151e4c3c537e76 (patch) | |
tree | b1ba61664247f7304bc7ac6a56610bd72519bc11 /libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp | |
parent | a170a5a5c20aa97cb3da472139959c893bea91de (diff) |
Remove references to ANDROID_ENABLE_LINEAR_BLENDING
Test: make
There is no longer any intent to turn on linear blending.
Change-Id: Ia1016f31833212da6ad4b4c6ebe03d16a509746d
Diffstat (limited to 'libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp')
-rw-r--r-- | libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp b/libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp index 8fb621d24866..e783f389feb8 100644 --- a/libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp +++ b/libs/hwui/pipeline/skia/VectorDrawableAtlas.cpp @@ -262,12 +262,7 @@ void VectorDrawableAtlas::delayedReleaseEntries() { } sk_sp<SkSurface> VectorDrawableAtlas::createSurface(int width, int height, GrContext* context) { -#ifndef ANDROID_ENABLE_LINEAR_BLENDING - sk_sp<SkColorSpace> colorSpace = nullptr; -#else - sk_sp<SkColorSpace> colorSpace = SkColorSpace::MakeSRGB(); -#endif - SkImageInfo info = SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType, colorSpace); + SkImageInfo info = SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType); // This must have a top-left origin so that calls to surface->canvas->writePixels // performs a basic texture upload instead of a more complex drawing operation return SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 0, kTopLeft_GrSurfaceOrigin, |