Break GrTextContext's reliance on SkGpuDevice
authorrobertphillips <robertphillips@google.com>
Thu, 28 May 2015 14:45:59 +0000 (07:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 28 May 2015 14:45:59 +0000 (07:45 -0700)
commit9c240a1e6d314056fe0d6a8a33a3c60a6e19288f
treeddbe73e7823816eed36ca9989739e4ec86f96dbe
parent6e43465039f8aa67084256292c65e6f842a57bb7
Break GrTextContext's reliance on SkGpuDevice

This CL seems to have 2 main downsides:

1) It duplicates some code in SkBaseDevice::filterTextFlags
2) It makes it tougher to derive from SkGpuDevice

It seems reasonable (at least to me) that the TextContexts get the power to reset the LCD flags.

Review URL: https://codereview.chromium.org/1159973002
src/gpu/GrAtlasTextContext.cpp
src/gpu/GrAtlasTextContext.h
src/gpu/GrTextContext.cpp
src/gpu/GrTextContext.h
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice.h