diff options
author | 2017-08-18 09:34:40 -0400 | |
---|---|---|
committer | 2017-08-18 14:01:39 +0000 | |
commit | 51fd6d85aa442aa8c070e5c5e4ec55cf41f86833 (patch) | |
tree | c054f7f4a1157d6ade521f957318aaf815f0fae2 /src/gpu/vk | |
parent | de3b7109135e0b3a1066f96fc34b908cf110bb28 (diff) |
Add GrMtlRenderTarget class
Adds basic support for creating non-msaa pure render targets.
Bug: skia:
Change-Id: I63d2d474b86fc0ff5d8ee7757c08abbfd5e6c6ef
Reviewed-on: https://skia-review.googlesource.com/31980
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/vk')
-rw-r--r-- | src/gpu/vk/GrVkRenderTarget.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkRenderTarget.h b/src/gpu/vk/GrVkRenderTarget.h index eeb8a1a325..3e3f60a804 100644 --- a/src/gpu/vk/GrVkRenderTarget.h +++ b/src/gpu/vk/GrVkRenderTarget.h @@ -98,8 +98,7 @@ protected: // This accounts for the texture's memory and any MSAA renderbuffer's memory. size_t onGpuMemorySize() const override { - // The plus 1 is to account for the resolve texture. - // TODO: is this still correct? + // The plus 1 is to account for the resolve texture or if not using msaa the RT itself int numColorSamples = this->numColorSamples() + 1; return GrSurface::ComputeSize(this->config(), this->width(), this->height(), numColorSamples, false); |