Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: src/gpu/GrDrawTarget.cpp

Issue 19636002: Plumb in flag for reusing scratch textures (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Added missing initialization! Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrDrawTargetCaps.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 fDstReadInShaderSupport = false;
954 fReuseScratchTextures = true;
953 955
954 fMaxRenderTargetSize = 0; 956 fMaxRenderTargetSize = 0;
955 fMaxTextureSize = 0; 957 fMaxTextureSize = 0;
956 fMaxSampleCount = 0; 958 fMaxSampleCount = 0;
957 } 959 }
958 960
959 GrDrawTargetCaps& GrDrawTargetCaps::operator=(const GrDrawTargetCaps& other) { 961 GrDrawTargetCaps& GrDrawTargetCaps::operator=(const GrDrawTargetCaps& other) {
960 f8BitPaletteSupport = other.f8BitPaletteSupport; 962 f8BitPaletteSupport = other.f8BitPaletteSupport;
961 fNPOTTextureTileSupport = other.fNPOTTextureTileSupport; 963 fNPOTTextureTileSupport = other.fNPOTTextureTileSupport;
962 fTwoSidedStencilSupport = other.fTwoSidedStencilSupport; 964 fTwoSidedStencilSupport = other.fTwoSidedStencilSupport;
963 fStencilWrapOpsSupport = other.fStencilWrapOpsSupport; 965 fStencilWrapOpsSupport = other.fStencilWrapOpsSupport;
964 fHWAALineSupport = other.fHWAALineSupport; 966 fHWAALineSupport = other.fHWAALineSupport;
965 fShaderDerivativeSupport = other.fShaderDerivativeSupport; 967 fShaderDerivativeSupport = other.fShaderDerivativeSupport;
966 fGeometryShaderSupport = other.fGeometryShaderSupport; 968 fGeometryShaderSupport = other.fGeometryShaderSupport;
967 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport; 969 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport;
968 fBufferLockSupport = other.fBufferLockSupport; 970 fBufferLockSupport = other.fBufferLockSupport;
969 fPathStencilingSupport = other.fPathStencilingSupport; 971 fPathStencilingSupport = other.fPathStencilingSupport;
972 fDstReadInShaderSupport = other.fDstReadInShaderSupport;
973 fReuseScratchTextures = other.fReuseScratchTextures;
970 974
971 fMaxRenderTargetSize = other.fMaxRenderTargetSize; 975 fMaxRenderTargetSize = other.fMaxRenderTargetSize;
972 fMaxTextureSize = other.fMaxTextureSize; 976 fMaxTextureSize = other.fMaxTextureSize;
973 fMaxSampleCount = other.fMaxSampleCount; 977 fMaxSampleCount = other.fMaxSampleCount;
974 978
975 return *this; 979 return *this;
976 } 980 }
977 981
978 void GrDrawTargetCaps::print() const { 982 void GrDrawTargetCaps::print() const {
979 static const char* gNY[] = {"NO", "YES"}; 983 static const char* gNY[] = {"NO", "YES"};
980 GrPrintf("8 Bit Palette Support : %s\n", gNY[f8BitPaletteSupport]); 984 GrPrintf("8 Bit Palette Support : %s\n", gNY[f8BitPaletteSupport]);
981 GrPrintf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileSupport]) ; 985 GrPrintf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileSupport]) ;
982 GrPrintf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilSupport]) ; 986 GrPrintf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilSupport]) ;
983 GrPrintf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSupport]); 987 GrPrintf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSupport]);
984 GrPrintf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport]); 988 GrPrintf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport]);
985 GrPrintf("Shader Derivative Support : %s\n", gNY[fShaderDerivativeSupport] ); 989 GrPrintf("Shader Derivative Support : %s\n", gNY[fShaderDerivativeSupport] );
986 GrPrintf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSupport]); 990 GrPrintf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSupport]);
987 GrPrintf("Dual Source Blending Support: %s\n", gNY[fDualSourceBlendingSuppor t]); 991 GrPrintf("Dual Source Blending Support: %s\n", gNY[fDualSourceBlendingSuppor t]);
988 GrPrintf("Buffer Lock Support : %s\n", gNY[fBufferLockSupport]); 992 GrPrintf("Buffer Lock Support : %s\n", gNY[fBufferLockSupport]);
989 GrPrintf("Path Stenciling Support : %s\n", gNY[fPathStencilingSupport]); 993 GrPrintf("Path Stenciling Support : %s\n", gNY[fPathStencilingSupport]);
990 GrPrintf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderSupport]) ; 994 GrPrintf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderSupport]) ;
995 GrPrintf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchTextures]);
991 GrPrintf("Max Texture Size : %d\n", fMaxTextureSize); 996 GrPrintf("Max Texture Size : %d\n", fMaxTextureSize);
992 GrPrintf("Max Render Target Size : %d\n", fMaxRenderTargetSize); 997 GrPrintf("Max Render Target Size : %d\n", fMaxRenderTargetSize);
993 GrPrintf("Max Sample Count : %d\n", fMaxSampleCount); 998 GrPrintf("Max Sample Count : %d\n", fMaxSampleCount);
994 } 999 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTargetCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698