Index: cc/test/test_context_provider.cc |
diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc |
index 7c9bb2ce07592171a5f7f91db0420bd916668e0d..2bf803c19f612a377419993ccd896cf94cc1decd 100644 |
--- a/cc/test/test_context_provider.cc |
+++ b/cc/test/test_context_provider.cc |
@@ -112,6 +112,14 @@ class GrContext* TestContextProvider::GrContext() { |
return gr_context_.get(); |
} |
+void TestContextProvider::InvalidateGrContext(uint32_t state) { |
+ DCHECK(bound_); |
+ DCHECK(context_thread_checker_.CalledOnValidThread()); |
+ |
+ if (gr_context_) |
+ gr_context_.get()->resetContext(state); |
danakj
2015/10/13 22:55:54
foo_.get()->bar() should be written foo_->bar()
|
+} |
+ |
void TestContextProvider::SetupLock() { |
} |