diff options
author | Robert Phillips <robertphillips@google.com> | 2017-06-13 08:11:36 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-13 13:12:17 +0000 |
commit | c4f0a8245ccf0d14f6a6dffc73ff56b563012b69 (patch) | |
tree | a595e5acd034b2d708122dea9a4d046610537c02 /src/gpu/GrTextureRenderTargetProxy.cpp | |
parent | e8f28818a2c0fe967f9fc4cec4bb9dc78af78212 (diff) |
Move Flags from GrRenderTarget to GrTypesPriv.h & rename
The motivation for this is to prevent GrRenderTarget.h appearing in GrRenderTargetProxy.h
Change-Id: I4ef126972c0780cbacb35fa2aa6290777c66eddf
Reviewed-on: https://skia-review.googlesource.com/19521
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrTextureRenderTargetProxy.cpp')
-rw-r--r-- | src/gpu/GrTextureRenderTargetProxy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/GrTextureRenderTargetProxy.cpp b/src/gpu/GrTextureRenderTargetProxy.cpp index 97c990dabe..9c4ccc67c2 100644 --- a/src/gpu/GrTextureRenderTargetProxy.cpp +++ b/src/gpu/GrTextureRenderTargetProxy.cpp @@ -17,7 +17,7 @@ GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(const GrCaps& caps, uint32_t flags) : GrSurfaceProxy(desc, fit, budgeted, flags) // for now textures w/ data are always wrapped - , GrTextureProxy(desc, fit, budgeted, nullptr, 0, flags) + , GrTextureProxy(desc, fit, budgeted, nullptr, 0, flags) , GrRenderTargetProxy(caps, desc, fit, budgeted, flags) { } @@ -27,7 +27,7 @@ GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(const GrCaps& caps, GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(sk_sp<GrSurface> surf) : GrSurfaceProxy(surf, SkBackingFit::kExact) , GrTextureProxy(surf) - , GrRenderTargetProxy(sk_ref_sp(surf->asRenderTarget())) { + , GrRenderTargetProxy(surf) { SkASSERT(surf->asTexture()); SkASSERT(surf->asRenderTarget()); } |