aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpu.cpp')
-rw-r--r--src/gpu/GrGpu.cpp6
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) {