aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/private/GrSurfaceProxy.h
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2018-04-26 16:31:38 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-26 21:44:43 +0000
commita070ed7fccd8bc9c5f314e1a4ac090c497862836 (patch)
treeecc4a4e13087343c756472d77385f46b20149653 /include/private/GrSurfaceProxy.h
parent848271111d6982fc0666fb195da1d9d8d279746e (diff)
Add InternalSurfaceFlag so we know if RenderTargetProxys and RenderTargets use GL FBO 0.
Bug: skia:7748 Change-Id: I2fda3cde12ccdef19fe06ff287a8024b58d28ef0 Reviewed-on: https://skia-review.googlesource.com/124048 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/private/GrSurfaceProxy.h')
-rw-r--r--include/private/GrSurfaceProxy.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/private/GrSurfaceProxy.h b/include/private/GrSurfaceProxy.h
index 20ee9a4d97..1c18492cbd 100644
--- a/include/private/GrSurfaceProxy.h
+++ b/include/private/GrSurfaceProxy.h
@@ -420,20 +420,6 @@ protected:
bool instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, bool needsStencil,
GrSurfaceDescFlags descFlags, GrMipMapped, const GrUniqueKey*);
- void setHasMixedSamples() {
- SkASSERT(this->asRenderTargetProxy());
- fSurfaceFlags |= GrInternalSurfaceFlags::kMixedSampled;
- }
- bool hasMixedSamples() const { return fSurfaceFlags & GrInternalSurfaceFlags::kMixedSampled; }
-
- void setSupportsWindowRects() {
- SkASSERT(this->asRenderTargetProxy());
- fSurfaceFlags |= GrInternalSurfaceFlags::kWindowRectsSupport;
- }
- bool supportsWindowRects() const {
- return fSurfaceFlags & GrInternalSurfaceFlags::kWindowRectsSupport;
- }
-
// In many cases these flags aren't actually known until the proxy has been instantiated.
// However, Ganesh frequently needs to change its behavior based on these settings. For
// internally create proxies we will know these properties ahead of time. For wrapped