Lines Matching refs:rtIDs
576 GrGLRenderTarget::GLRenderTargetIDs rtIDs;
578 rtIDs.fRTFBOID = desc.fPlatformRenderTarget;
581 rtIDs.fTexFBOID = desc.fPlatformResolveDestination;
584 rtIDs.fTexFBOID = GrGLRenderTarget::kUnresolvableFBOID;
587 rtIDs.fTexFBOID = desc.fPlatformRenderTarget;
591 rtIDs.fStencilRenderbufferID = 0;
592 rtIDs.fMSColorRenderbufferID = 0;
594 rtIDs.fOwnIDs = false;
596 rtIDs.reset();
622 return new GrGLTexture(this, texDesc, rtIDs, params);
630 return new GrGLRenderTarget(this, rtIDs, NULL, desc.fStencilBits,
638 GrGLRenderTarget::GLRenderTargetIDs rtIDs;
640 GR_GL_GetIntegerv(GR_GL_FRAMEBUFFER_BINDING, (GrGLint*)&rtIDs.fRTFBOID);
641 rtIDs.fTexFBOID = rtIDs.fRTFBOID;
642 rtIDs.fMSColorRenderbufferID = 0;
643 rtIDs.fStencilRenderbufferID = 0;
653 rtIDs.fOwnIDs = false;
655 return new GrGLRenderTarget(this, rtIDs, NULL, stencilBits,
896 GrGLRenderTarget::GLRenderTargetIDs rtIDs;
897 rtIDs.fStencilRenderbufferID = 0;
898 rtIDs.fMSColorRenderbufferID = 0;
899 rtIDs.fRTFBOID = 0;
900 rtIDs.fTexFBOID = 0;
901 rtIDs.fOwnIDs = true;
918 GR_GL(GenFramebuffers(1, &rtIDs.fTexFBOID));
919 GrAssert(rtIDs.fTexFBOID);
924 GR_GL(GenFramebuffers(1, &rtIDs.fRTFBOID));
925 GrAssert(0 != rtIDs.fRTFBOID);
926 GR_GL(GenRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
927 GrAssert(0 != rtIDs.fMSColorRenderbufferID);
929 GR_GL(DeleteRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
931 GR_GL(DeleteFramebuffers(1, &rtIDs.fTexFBOID));
932 GR_GL(DeleteFramebuffers(1, &rtIDs.fRTFBOID));
936 rtIDs.fRTFBOID = rtIDs.fTexFBOID;
939 GR_GL(GenRenderbuffers(1, &rtIDs.fStencilRenderbufferID));
940 GrAssert(0 != rtIDs.fStencilRenderbufferID);
952 if (rtIDs.fStencilRenderbufferID) {
954 rtIDs.fStencilRenderbufferID));
973 if (rtIDs.fRTFBOID != rtIDs.fTexFBOID) {
976 rtIDs.fMSColorRenderbufferID));
988 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, rtIDs.fTexFBOID));
997 if (rtIDs.fRTFBOID != rtIDs.fTexFBOID) {
1004 GR_GL(BindFramebuffer(GR_GL_FRAMEBUFFER, rtIDs.fRTFBOID));
1011 rtIDs.fMSColorRenderbufferID));
1014 if (rtIDs.fStencilRenderbufferID) {
1019 rtIDs.fStencilRenderbufferID));
1026 rtIDs.fStencilRenderbufferID));
1035 if (rtIDs.fStencilRenderbufferID &&
1046 if (rtIDs.fStencilRenderbufferID) {
1056 if (rtIDs.fStencilRenderbufferID) {
1057 GR_GL(DeleteRenderbuffers(1, &rtIDs.fStencilRenderbufferID));
1059 if (rtIDs.fMSColorRenderbufferID) {
1060 GR_GL(DeleteRenderbuffers(1, &rtIDs.fMSColorRenderbufferID));
1062 if (rtIDs.fRTFBOID != rtIDs.fTexFBOID) {
1063 GR_GL(DeleteFramebuffers(1, &rtIDs.fRTFBOID));
1065 if (rtIDs.fTexFBOID) {
1066 GR_GL(DeleteFramebuffers(1, &rtIDs.fTexFBOID));
1076 GrGLTexture* tex = new GrGLTexture(this, glDesc, rtIDs, DEFAULT_PARAMS);
1078 if (0 != rtIDs.fTexFBOID) {