aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/RenderTargetContextTest.cpp
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2017-04-11 12:54:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-04-11 19:38:18 +0000
commit1119dc366e15ef737d05d3a087410ea40c508101 (patch)
tree0b1363476a28c6df8baf79a46dbee8a74eac48af /tests/RenderTargetContextTest.cpp
parentfafe135349bd34961a12bfd8185733709cd0e45e (diff)
Remove discard from GrRenderTarget & force it to always go through a RenderTargetContext
This is a bit sloppy in that it ignores some instances where discards were being issued before. The creation of the temp RTContext in the RenderTarget's discard method was causing an extra split in the opLists. This is split out of: https://skia-review.googlesource.com/c/10284/ (Omnibus: Remove GrSurface-derived classes from ops) Change-Id: Ic366d303280635763b0fae238c4df37c04fb8503 Reviewed-on: https://skia-review.googlesource.com/11125 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'tests/RenderTargetContextTest.cpp')
-rw-r--r--tests/RenderTargetContextTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/RenderTargetContextTest.cpp b/tests/RenderTargetContextTest.cpp
index 3db0473b62..760b258d07 100644
--- a/tests/RenderTargetContextTest.cpp
+++ b/tests/RenderTargetContextTest.cpp
@@ -9,6 +9,11 @@
#include "Test.h"
+// MDB TODO: With the move of the discard calls to the RenderTargetContext, deferred RTCs are being
+// instantiated early. This test can be re-enabled once discards do not force an instantiation
+// (i.e., when renderTargetProxies carry the op IORefs)
+#if 0
+
#if SK_SUPPORT_GPU
#include "GrTextureProxy.h"
#include "GrRenderTargetContext.h"
@@ -85,3 +90,4 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RenderTargetContextTest, reporter, ctxInfo) {
// GrRenderTargetContext
}
#endif
+#endif