aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index c872acd17d..4fb9ffdea3 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -2411,6 +2411,20 @@ void GrGLCaps::onApplyOptionsOverrides(const GrContextOptions& options) {
}
}
+bool GrGLCaps::onIsMixedSamplesSupportedForRT(const GrBackendRenderTarget& backendRT) const {
+ const GrGLFramebufferInfo* fbInfo = backendRT.getGLFramebufferInfo();
+ SkASSERT(fbInfo);
+ // Mixed samples are not supported for FBO 0;
+ return fbInfo->fFBOID != 0;
+}
+
+bool GrGLCaps::onIsWindowRectanglesSupportedForRT(const GrBackendRenderTarget& backendRT) const {
+ const GrGLFramebufferInfo* fbInfo = backendRT.getGLFramebufferInfo();
+ SkASSERT(fbInfo);
+ // Window Rectangles are not supported for FBO 0;
+ return fbInfo->fFBOID != 0;
+}
+
int GrGLCaps::getRenderTargetSampleCount(int requestedCount, GrPixelConfig config) const {
requestedCount = SkTMax(1, requestedCount);
int count = fConfigTable[config].fColorSampleCounts.count();