Chromium Code Reviews| 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 |