Fix oval rendering in vulkan
authoregdaniel <egdaniel@google.com>
Fri, 26 Feb 2016 16:32:20 +0000 (08:32 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 26 Feb 2016 16:32:20 +0000 (08:32 -0800)
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1739063002

Review URL: https://codereview.chromium.org/1739063002

src/gpu/GrSWMaskHelper.cpp
src/gpu/vk/GrVkCaps.cpp

index f97af4b108c2d4097a6abba17861e9341bf19d79..b6117e344e3db2faaf928ff16a0b74c59c3f3334 100644 (file)
@@ -127,7 +127,6 @@ void GrSWMaskHelper::draw(const SkPath& path, const SkStrokeRec& stroke, SkRegio
     SkPaint paint;
     if (stroke.isHairlineStyle()) {
         paint.setStyle(SkPaint::kStroke_Style);
-        paint.setStrokeWidth(SK_Scalar1);
     } else {
         if (stroke.isFillStyle()) {
             paint.setStyle(SkPaint::kFill_Style);
index a9ad05c8997970e7aaa3986faa2e2a95b5151363..d8ac8757e5c378315dd14b45f58a764634e47c2c 100644 (file)
@@ -120,6 +120,8 @@ void GrVkCaps::initGLSLCaps(const GrVkInterface* interface, VkPhysicalDevice phy
             glslCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA();
         }
     }
+
+    glslCaps->fShaderDerivativeSupport = true;
 }
 
 static void format_supported_for_feature(const GrVkInterface* interface,