Fix oval rendering in vulkan

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
This commit is contained in:
egdaniel 2016-02-26 08:32:20 -08:00 committed by Commit bot
parent d5722a4a1b
commit 67acb83ce9
2 changed files with 2 additions and 1 deletions

View 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);

View 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,