diff options
author | 2012-07-18 21:41:50 +0000 | |
---|---|---|
committer | 2012-07-18 21:41:50 +0000 | |
commit | 580711694654b8edc70028d09c4211445b661466 (patch) | |
tree | 91c7c37f5019f2d6c5a4f954c0a845054c01e650 /src/gpu/GrDrawTarget.cpp | |
parent | 855cd7aa5e42b5b2c163e14dfefd22fe039127ba (diff) |
This CL implements the Ganesh path for the SkTable_ColorFilter color transformation.
A new texture stage dedicated to color transforms has been added, along with the new custom stage implementing the LUT.
Review URL: https://codereview.appspot.com/6351081
git-svn-id: http://skia.googlecode.com/svn/trunk@4663 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawTarget.cpp')
-rw-r--r-- | src/gpu/GrDrawTarget.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index bd922fe9c2..d3d4e45f75 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -67,19 +67,22 @@ void gen_globals() { } /* These values were generated by the above function */ + const GrVertexLayout gStageTexCoordMasks[] = { - 0x1111, - 0x2222, - 0x4444, - 0x8888, + 0x108421, + 0x210842, + 0x421084, + 0x842108, + 0x1084210, }; GR_STATIC_ASSERT(GrDrawState::kNumStages == GR_ARRAY_COUNT(gStageTexCoordMasks)); const GrVertexLayout gTexCoordMasks[] = { - 0xf, - 0xf0, - 0xf00, - 0xf000, + 0x1f, + 0x3e0, + 0x7c00, + 0xf8000, + 0x1f00000, }; GR_STATIC_ASSERT(GrDrawState::kMaxTexCoords == GR_ARRAY_COUNT(gTexCoordMasks)); |