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

Unified Diff: webkit/common/gpu/context_provider_in_process.cc

Issue 917223003: Add lock support for in process context provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/gpu/context_provider_in_process.cc
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index f2844b2773340bb4b81f0f659d0b89ff2e526471..409d7a096b5dcb646f1c4cb7a9a71356c653ef37 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -157,10 +157,11 @@ class GrContext* ContextProviderInProcess::GrContext() {
}
void ContextProviderInProcess::SetupLock() {
+ context3d_->SetLock(&context_lock_);
}
base::Lock* ContextProviderInProcess::GetLock() {
- return nullptr;
+ return &context_lock_;
}
bool ContextProviderInProcess::IsContextLost() {
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698