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

Unified Diff: src/gpu/gl/GrGpuGL.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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGpuGL.h
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h
index a8130d8099d63b00c72ab7c2b51e173851ff2f6c..113f08cc0f6bb233e98d6fc22c5c2a7e83784f84 100644
--- a/src/gpu/gl/GrGpuGL.h
+++ b/src/gpu/gl/GrGpuGL.h
@@ -94,6 +94,11 @@ public:
fHWGeometryState.notifyIndexBufferDelete(id);
}
+#if GR_GPU_STATS
+ virtual const GrContext::GPUStats& gpuStats() const SK_OVERRIDE { return fGPUStats; }
+ GrContext::GPUStats fGPUStats;
bsalomon 2014/09/17 18:50:16 Instead of making this public and passing GrGpuGL
+#endif
+
protected:
virtual bool onCopySurface(GrSurface* dst,
GrSurface* src,
@@ -150,7 +155,7 @@ private:
bool insideClip) SK_OVERRIDE;
virtual bool flushGraphicsState(DrawType, const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE;
- // GrDrawTarget ovverides
+ // GrDrawTarget overrides
virtual void didAddGpuTraceMarker() SK_OVERRIDE;
virtual void didRemoveGpuTraceMarker() SK_OVERRIDE;
@@ -267,6 +272,8 @@ private:
GrGLuint texID,
GrGLRenderTarget::Desc* desc);
+ GrGLuint bindSurfaceAsFBO(GrSurface* surface, GrGLenum fboTarget, GrGLIRect* viewport);
+
GrGLContext fGLContext;
// GL program-related state
« src/gpu/GrGpu.h ('K') | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698