OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
943 f8BitPaletteSupport = false; | 943 f8BitPaletteSupport = false; |
944 fNPOTTextureTileSupport = false; | 944 fNPOTTextureTileSupport = false; |
945 fTwoSidedStencilSupport = false; | 945 fTwoSidedStencilSupport = false; |
946 fStencilWrapOpsSupport = false; | 946 fStencilWrapOpsSupport = false; |
947 fHWAALineSupport = false; | 947 fHWAALineSupport = false; |
948 fShaderDerivativeSupport = false; | 948 fShaderDerivativeSupport = false; |
949 fGeometryShaderSupport = false; | 949 fGeometryShaderSupport = false; |
950 fDualSourceBlendingSupport = false; | 950 fDualSourceBlendingSupport = false; |
951 fBufferLockSupport = false; | 951 fBufferLockSupport = false; |
952 fPathStencilingSupport = false; | 952 fPathStencilingSupport = false; |
953 | 953 |
bsalomon
2013/07/18 18:21:40
Need to init here.
robertphillips
2013/07/18 19:06:39
Done.
| |
954 fMaxRenderTargetSize = 0; | 954 fMaxRenderTargetSize = 0; |
955 fMaxTextureSize = 0; | 955 fMaxTextureSize = 0; |
956 fMaxSampleCount = 0; | 956 fMaxSampleCount = 0; |
957 } | 957 } |
958 | 958 |
959 GrDrawTargetCaps& GrDrawTargetCaps::operator=(const GrDrawTargetCaps& other) { | 959 GrDrawTargetCaps& GrDrawTargetCaps::operator=(const GrDrawTargetCaps& other) { |
960 f8BitPaletteSupport = other.f8BitPaletteSupport; | 960 f8BitPaletteSupport = other.f8BitPaletteSupport; |
961 fNPOTTextureTileSupport = other.fNPOTTextureTileSupport; | 961 fNPOTTextureTileSupport = other.fNPOTTextureTileSupport; |
962 fTwoSidedStencilSupport = other.fTwoSidedStencilSupport; | 962 fTwoSidedStencilSupport = other.fTwoSidedStencilSupport; |
963 fStencilWrapOpsSupport = other.fStencilWrapOpsSupport; | 963 fStencilWrapOpsSupport = other.fStencilWrapOpsSupport; |
964 fHWAALineSupport = other.fHWAALineSupport; | 964 fHWAALineSupport = other.fHWAALineSupport; |
965 fShaderDerivativeSupport = other.fShaderDerivativeSupport; | 965 fShaderDerivativeSupport = other.fShaderDerivativeSupport; |
966 fGeometryShaderSupport = other.fGeometryShaderSupport; | 966 fGeometryShaderSupport = other.fGeometryShaderSupport; |
967 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport; | 967 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport; |
968 fBufferLockSupport = other.fBufferLockSupport; | 968 fBufferLockSupport = other.fBufferLockSupport; |
969 fPathStencilingSupport = other.fPathStencilingSupport; | 969 fPathStencilingSupport = other.fPathStencilingSupport; |
bsalomon
2013/07/18 18:21:40
Need to assign here.
robertphillips
2013/07/18 19:06:39
Done.
| |
970 | 970 |
971 fMaxRenderTargetSize = other.fMaxRenderTargetSize; | 971 fMaxRenderTargetSize = other.fMaxRenderTargetSize; |
972 fMaxTextureSize = other.fMaxTextureSize; | 972 fMaxTextureSize = other.fMaxTextureSize; |
973 fMaxSampleCount = other.fMaxSampleCount; | 973 fMaxSampleCount = other.fMaxSampleCount; |
974 | 974 |
975 return *this; | 975 return *this; |
976 } | 976 } |
977 | 977 |
978 void GrDrawTargetCaps::print() const { | 978 void GrDrawTargetCaps::print() const { |
979 static const char* gNY[] = {"NO", "YES"}; | 979 static const char* gNY[] = {"NO", "YES"}; |
980 GrPrintf("8 Bit Palette Support : %s\n", gNY[f8BitPaletteSupport]); | 980 GrPrintf("8 Bit Palette Support : %s\n", gNY[f8BitPaletteSupport]); |
981 GrPrintf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileSupport]) ; | 981 GrPrintf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileSupport]) ; |
982 GrPrintf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilSupport]) ; | 982 GrPrintf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilSupport]) ; |
983 GrPrintf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSupport]); | 983 GrPrintf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSupport]); |
984 GrPrintf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport]); | 984 GrPrintf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport]); |
985 GrPrintf("Shader Derivative Support : %s\n", gNY[fShaderDerivativeSupport] ); | 985 GrPrintf("Shader Derivative Support : %s\n", gNY[fShaderDerivativeSupport] ); |
986 GrPrintf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSupport]); | 986 GrPrintf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSupport]); |
987 GrPrintf("Dual Source Blending Support: %s\n", gNY[fDualSourceBlendingSuppor t]); | 987 GrPrintf("Dual Source Blending Support: %s\n", gNY[fDualSourceBlendingSuppor t]); |
988 GrPrintf("Buffer Lock Support : %s\n", gNY[fBufferLockSupport]); | 988 GrPrintf("Buffer Lock Support : %s\n", gNY[fBufferLockSupport]); |
989 GrPrintf("Path Stenciling Support : %s\n", gNY[fPathStencilingSupport]); | 989 GrPrintf("Path Stenciling Support : %s\n", gNY[fPathStencilingSupport]); |
990 GrPrintf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderSupport]) ; | 990 GrPrintf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderSupport]) ; |
991 GrPrintf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchTextures]); | |
991 GrPrintf("Max Texture Size : %d\n", fMaxTextureSize); | 992 GrPrintf("Max Texture Size : %d\n", fMaxTextureSize); |
992 GrPrintf("Max Render Target Size : %d\n", fMaxRenderTargetSize); | 993 GrPrintf("Max Render Target Size : %d\n", fMaxRenderTargetSize); |
993 GrPrintf("Max Sample Count : %d\n", fMaxSampleCount); | 994 GrPrintf("Max Sample Count : %d\n", fMaxSampleCount); |
994 } | 995 } |
OLD | NEW |