diff options
author | csmartdalton <csmartdalton@google.com> | 2016-08-10 11:09:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-10 11:09:07 -0700 |
commit | f9635999a4aa8810d04e8ef04594a9fbcc061e3d (patch) | |
tree | 07e43ef173ca41adc6ceec7ade2f1dd2669cfbf6 /tools/gpu/GrTest.cpp | |
parent | 4ab47e087ecfc82f070cbbaef4d9eb562d3fd163 (diff) |
Add flag for window rectangles to GrRenderTarget
Adds a flag to GrRenderTarget that indicates whether it can be used
with window rectangles. Also attempts to clean up some of the mixed
samples API.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2225303002
Review-Url: https://codereview.chromium.org/2225303002
Diffstat (limited to 'tools/gpu/GrTest.cpp')
-rw-r--r-- | tools/gpu/GrTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp index 33d88446f2..d2c72956ea 100644 --- a/tools/gpu/GrTest.cpp +++ b/tools/gpu/GrTest.cpp @@ -13,6 +13,7 @@ #include "GrDrawingManager.h" #include "GrGpuResourceCacheAccess.h" #include "GrPipelineBuilder.h" +#include "GrRenderTargetProxy.h" #include "GrResourceCache.h" #include "SkGpuDevice.h" @@ -258,6 +259,12 @@ void GrDrawContextPriv::testingOnly_drawBatch(const GrPaint& paint, #undef RETURN_IF_ABANDONED /////////////////////////////////////////////////////////////////////////////// + +GrRenderTargetPriv::Flags GrRenderTargetProxy::testingOnly_getFlags() const { + return fFlags; +} + +/////////////////////////////////////////////////////////////////////////////// // Code for the mock context. It's built on a mock GrGpu class that does nothing. //// |