diff options
author | 2011-11-05 12:18:58 +0000 | |
---|---|---|
committer | 2011-11-05 12:18:58 +0000 | |
commit | 1bf1c21025e50dba3352ccb660e384f8540ff89c (patch) | |
tree | 976f3020cd5d6fd0382577f5377c757d11dc2624 /src/gpu/GrGpu.cpp | |
parent | ce1d9e2e42ea8027ca92b2ba29957eaa6e2ce850 (diff) |
Add reset context count to GrGpu
git-svn-id: http://skia.googlecode.com/svn/trunk@2605 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r-- | src/gpu/GrGpu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrGpu.cpp b/src/gpu/GrGpu.cpp index 1fc8d47339..9ce8fa05e6 100644 --- a/src/gpu/GrGpu.cpp +++ b/src/gpu/GrGpu.cpp @@ -32,6 +32,7 @@ extern void gr_run_unittests(); GrGpu::GrGpu() : fContext(NULL) + , fResetCnt(0) , fVertexPool(NULL) , fIndexPool(NULL) , fVertexPoolUseCnt(0) @@ -61,6 +62,11 @@ GrGpu::~GrGpu() { this->releaseResources(); } +void GrGpu::resetContext() { + this->onResetContext(); + ++fResetCnt; +} + void GrGpu::abandonResources() { while (NULL != fResourceHead) { |