diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-10-24 10:59:03 -0600 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-25 15:59:18 +0000 |
commit | c17bf32a1bf2f79a8c4a281c2ad312a3cdb610cd (patch) | |
tree | daac8294c72cd1bfd370291faf3dbc364460be8e /samplecode | |
parent | a045eea29eb79254248d7e2666825a1ca7d23d4e (diff) |
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 <egdaniel@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleCCPRGeometry.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<SkPoint> fGpuPoints; |