Always have GrLayer's rect be valid
authorrobertphillips <robertphillips@google.com>
Wed, 16 Jul 2014 02:46:35 +0000 (19:46 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Jul 2014 02:46:35 +0000 (19:46 -0700)
commit21048b588faa6a1c84949603ba82d9d4ba2f0cdd
treef8bcae49b43a710a5820016958c31635eea21540
parent32a311bfc056169c9f3b1c299c57ff5139a0d8bc
Always have GrLayer's rect be valid

This CL just makes atlasing easier/clearer since there is a separate atlased query method. Not using the rect as a signal also simplifies the rendering of the layer in SkGpuDevice.cpp.

This is calved off from (Add atlased layer purging - https://codereview.chromium.org/367073002/)

R=bsalomon@google.com

Author: robertphillips@google.com

Review URL: https://codereview.chromium.org/384233002
src/gpu/GrLayerCache.cpp
src/gpu/GrLayerCache.h
src/gpu/SkGpuDevice.cpp
tests/GpuLayerCacheTest.cpp