aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureRenderTargetProxy.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-01-10 17:06:31 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-12 19:36:08 +0000
commit65fa8ca85ef146340ddea61bb08c182df499ca62 (patch)
treec8795e3ecf0c2c45929249b03dcbe108f52e2445 /src/gpu/GrTextureRenderTargetProxy.cpp
parente2330261a704e2db762e2de0d297bf8b4dc510f1 (diff)
Updating lazy proxys to support the case where we know a lot more info about the texture.
This is needed for future DDL texture work. Bug: skia: Change-Id: I07e0b9c67509e63b9cac00adc355254d03784df8 Reviewed-on: https://skia-review.googlesource.com/91500 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrTextureRenderTargetProxy.cpp')
-rw-r--r--src/gpu/GrTextureRenderTargetProxy.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gpu/GrTextureRenderTargetProxy.cpp b/src/gpu/GrTextureRenderTargetProxy.cpp
index 943523116d..fe12a0a975 100644
--- a/src/gpu/GrTextureRenderTargetProxy.cpp
+++ b/src/gpu/GrTextureRenderTargetProxy.cpp
@@ -7,6 +7,7 @@
#include "GrTextureRenderTargetProxy.h"
+#include "GrCaps.h"
#include "GrTexture.h"
#include "GrRenderTarget.h"
#include "GrSurfaceProxyPriv.h"
@@ -27,12 +28,16 @@ GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(const GrCaps& caps,
// Lazy-callback version
GrTextureRenderTargetProxy::GrTextureRenderTargetProxy(LazyInstantiateCallback&& callback,
- GrPixelConfig config)
- : GrSurfaceProxy(std::move(callback), config)
+ const GrSurfaceDesc& desc,
+ GrMipMapped mipMapped,
+ SkBackingFit fit,
+ SkBudgeted budgeted,
+ uint32_t flags)
+ : GrSurfaceProxy(std::move(callback), desc, fit, budgeted, flags)
// Since we have virtual inheritance, we initialize GrSurfaceProxy directly. Send null
// callbacks to the texture and RT proxies simply to route to the appropriate constructors.
- , GrTextureProxy(LazyInstantiateCallback(), config)
- , GrRenderTargetProxy(LazyInstantiateCallback(), config) {
+ , GrTextureProxy(LazyInstantiateCallback(), desc, mipMapped, fit, budgeted, flags)
+ , GrRenderTargetProxy(LazyInstantiateCallback(), desc, fit, budgeted, flags) {
}
// Wrapped version