aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LazyProxyTest.cpp
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-12 16:50:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-12 21:40:11 +0000
commit92cbf3fc0112c99ec4aea9d8b7550a2573463262 (patch)
tree5dcec51815cd729db1f917b13dc5d185c1899a09 /tests/LazyProxyTest.cpp
parent5f3ce3e43a56d9739ef5c2c12e889efd8e120659 (diff)
Don't create lazy proxys if their width/height is greater than max tex size
Bug: skia: Change-Id: I53508c4e3bbd4c315be4b29a66716e0c5e7f25bf Reviewed-on: https://skia-review.googlesource.com/121161 Reviewed-by: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tests/LazyProxyTest.cpp')
-rw-r--r--tests/LazyProxyTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/LazyProxyTest.cpp b/tests/LazyProxyTest.cpp
index 2b2b716511..c048ea6a28 100644
--- a/tests/LazyProxyTest.cpp
+++ b/tests/LazyProxyTest.cpp
@@ -233,6 +233,7 @@ DEF_GPUTEST(LazyProxyReleaseTest, reporter, /* options */) {
desc, kTopLeft_GrSurfaceOrigin, GrMipMapped::kNo, GrInternalSurfaceFlags::kNone,
SkBackingFit::kExact, SkBudgeted::kNo, lazyType);
+ REPORTER_ASSERT(reporter, proxy.get());
REPORTER_ASSERT(reporter, 0 == testCount);
if (doInstantiate) {
@@ -281,6 +282,8 @@ public:
desc, kTopLeft_GrSurfaceOrigin, GrMipMapped::kNo, SkBackingFit::kExact,
SkBudgeted::kNo);
+ SkASSERT(fLazyProxy.get());
+
this->setBounds(SkRect::MakeIWH(kSize, kSize),
HasAABloat::kNo, IsZeroArea::kNo);
}
@@ -425,6 +428,8 @@ DEF_GPUTEST(LazyProxyUninstantiateTest, reporter, /* options */) {
desc, kTopLeft_GrSurfaceOrigin, GrMipMapped::kNo, GrInternalSurfaceFlags::kNone,
SkBackingFit::kExact, SkBudgeted::kNo, lazyType);
+ REPORTER_ASSERT(reporter, lazyProxy.get());
+
rtc->priv().testingOnly_addDrawOp(skstd::make_unique<LazyUninstantiateTestOp>(lazyProxy));
ctx->flush();