From e3204864899651a132d3387422d7fd599c21b3ac Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Mon, 16 Apr 2018 11:24:10 -0400 Subject: Don't allow ganesh to allocate mip maps for wrapped textures. We will not allocate new mips on a wrapped texture but we will use mips if the wrapped texture already has one. If we need mips for a draw this will trigger a copy to occur. Also some cleanup up of our InternalSurfaceFlags in general. Bug: skia:7806 Change-Id: I7aa666478cc91bba6e0644b323825fcc9b49793a Reviewed-on: https://skia-review.googlesource.com/121348 Commit-Queue: Greg Daniel Reviewed-by: Robert Phillips --- tests/LazyProxyTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/LazyProxyTest.cpp') diff --git a/tests/LazyProxyTest.cpp b/tests/LazyProxyTest.cpp index c048ea6a28..b8e672a55f 100644 --- a/tests/LazyProxyTest.cpp +++ b/tests/LazyProxyTest.cpp @@ -430,6 +430,10 @@ DEF_GPUTEST(LazyProxyUninstantiateTest, reporter, /* options */) { REPORTER_ASSERT(reporter, lazyProxy.get()); + // We can't pass the fact that this creates a wrapped texture into createLazyProxy so we + // need to manually call setDoesNotSupportMipMaps. + lazyProxy->texPriv().setDoesNotSupportMipMaps(); + rtc->priv().testingOnly_addDrawOp(skstd::make_unique(lazyProxy)); ctx->flush(); -- cgit v1.2.3