Make SkImage::getTexture() const
authorkkinnunen <kkinnunen@nvidia.com>
Wed, 18 Feb 2015 18:50:52 +0000 (10:50 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 18 Feb 2015 18:50:52 +0000 (10:50 -0800)
commitcd6ca9e689610d9fad2ef2b9c840dcdccc649471
tree2df73079d7f4e32ed561eb60f7ea61f7c8f90a21
parent4c7a8b04a09a6b9558a8ffcfbd311c0681ab5df1
Make SkImage::getTexture() const

Make SkImage::getTexture() const. At the moment the function
does not mutate the state.

One use-case is that this makes it possible in the future to add draw
function to SkBaseDevice functions. The device draw functions take
const ref objects, but SkGpuDevice likely would benefit of using the
getTexture().

BUG=skia:3388
R=reed@google.com

Review URL: https://codereview.chromium.org/925853002
include/core/SkImage.h
src/image/SkImage.cpp