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

Unified Diff: cc/output/context_provider.cc

Issue 1131723002: Add ContextProvider::InvalidateGrContext to reset GL state in GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: cc/output/context_provider.cc
diff --git a/cc/output/context_provider.cc b/cc/output/context_provider.cc
index 23a8e2c8fd33c50062f873ccef75a7ed2e8e7ab0..2cf9da208981170242edf4b1fbcd894701e8e85a 100644
--- a/cc/output/context_provider.cc
+++ b/cc/output/context_provider.cc
@@ -11,4 +11,8 @@ namespace cc {
ContextProvider::Capabilities::Capabilities()
: max_transfer_buffer_usage_bytes(std::numeric_limits<size_t>::max()) {}
+void ContextProvider::InvalidateGrContext(uint32_t state) {
+ DoInvalidateGrContext(state);
piman 2015/05/06 22:03:40 Why this? Instead you can have each derived class
CodeByThePound 2015/05/06 22:27:55 This is a pattern that allows the default argument
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698