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

Side by Side Diff: include/gpu/GrContext.h

Issue 553583008: Add counting of some GL calls (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix some indents Created 6 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 /** 953 /**
954 * This returns a copy of the the GrContext::Options that was passed to the 954 * This returns a copy of the the GrContext::Options that was passed to the
955 * constructor of this class. 955 * constructor of this class.
956 */ 956 */
957 const Options& getOptions() const { return fOptions; } 957 const Options& getOptions() const { return fOptions; }
958 958
959 #if GR_CACHE_STATS 959 #if GR_CACHE_STATS
960 void printCacheStats() const; 960 void printCacheStats() const;
961 #endif 961 #endif
962 962
963 #if GR_GPU_STATS
964 struct GPUStats {
965 int fBindFrameBufferCalls;
966 int fCompileShaderCalls;
967 };
968
969 const GPUStats& gpuStats() const;
970 #endif
971
963 private: 972 private:
964 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer. 973 // Used to indicate whether a draw should be performed immediately or queued in fDrawBuffer.
965 enum BufferedDraw { 974 enum BufferedDraw {
966 kYes_BufferedDraw, 975 kYes_BufferedDraw,
967 kNo_BufferedDraw, 976 kNo_BufferedDraw,
968 }; 977 };
969 BufferedDraw fLastDrawWasBuffered; 978 BufferedDraw fLastDrawWasBuffered;
970 979
971 GrGpu* fGpu; 980 GrGpu* fGpu;
972 SkMatrix fViewMatrix; 981 SkMatrix fViewMatrix;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 } 1156 }
1148 1157
1149 GrTexture* texture() { return fTexture; } 1158 GrTexture* texture() { return fTexture; }
1150 1159
1151 private: 1160 private:
1152 GrContext* fContext; 1161 GrContext* fContext;
1153 GrTexture* fTexture; 1162 GrTexture* fTexture;
1154 }; 1163 };
1155 1164
1156 #endif 1165 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrConfig.h ('k') | src/gpu/GrContext.cpp » ('j') | src/gpu/GrGpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698