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

Unified Diff: src/gpu/GrContext.cpp

Issue 17027003: Add flag bits for partial GrContext reset (Closed)
Patch Set: add flags for partial resetContext Created 7 years, 6 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/GrContext.cpp
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index c94c1a925b6092ae21f95cbf38313bfc134b6c5b..d905137e89e0fd7083a9010f859b9ddbf72ee1a5 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -204,8 +204,12 @@ void GrContext::contextDestroyed() {
fGpu->markContextDirty();
}
-void GrContext::resetContext() {
- fGpu->markContextDirty();
+void GrContext::resetContext(GrState state) {
+ fGpu->markContextDirty(state);
+}
+
+void GrContext::resetTextureBinding() {
+ fGpu->resetTextureBinding();
}
void GrContext::freeGpuResources() {
« include/gpu/GrContext.h ('K') | « include/gpu/GrContext.h ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698