From c17bf32a1bf2f79a8c4a281c2ad312a3cdb610cd Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Tue, 24 Oct 2017 10:59:03 -0600 Subject: Convert geometry shaders to operate in Skia device space Defers the transformation to normalized window coordinates until after the geometry shader. Merges vertex and a geometry shader builders into a single compilation unit with a common base class. Updates CCPR geometry shaders accordingly. Bug: skia: Change-Id: If93c90e978b1fdc7120febd05cfb05810fd496b5 Reviewed-on: https://skia-review.googlesource.com/62980 Reviewed-by: Greg Daniel Commit-Queue: Chris Dalton --- samplecode/SampleCCPRGeometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'samplecode') diff --git a/samplecode/SampleCCPRGeometry.cpp b/samplecode/SampleCCPRGeometry.cpp index aa1fb8b8a4..8633398337 100644 --- a/samplecode/SampleCCPRGeometry.cpp +++ b/samplecode/SampleCCPRGeometry.cpp @@ -70,9 +70,9 @@ private: SkPoint fPoints[4] = { {100.05f, 100.05f}, - {100.05f, 300.95f}, + {400.75f, 100.05f}, {400.75f, 300.95f}, - {400.75f, 100.05f} + {100.05f, 300.95f} }; SkTArray fGpuPoints; -- cgit v1.2.3