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

Unified Diff: components/mus/surfaces/surfaces_context_provider.cc

Issue 1936423002: Remove unused locks in mus ContextProvider classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit Created 4 years, 8 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 | « components/mus/surfaces/surfaces_context_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/surfaces/surfaces_context_provider.cc
diff --git a/components/mus/surfaces/surfaces_context_provider.cc b/components/mus/surfaces/surfaces_context_provider.cc
index ceb853b64f9d66d3faee93de051974b3ead95b35..d29295059da5eb0577eab452d4ab1d8e24ec8f4e 100644
--- a/components/mus/surfaces/surfaces_context_provider.cc
+++ b/components/mus/surfaces/surfaces_context_provider.cc
@@ -93,7 +93,9 @@ gpu::Capabilities SurfacesContextProvider::ContextCapabilities() {
void SurfacesContextProvider::SetupLock() {}
base::Lock* SurfacesContextProvider::GetLock() {
- return &context_lock_;
+ // This context provider is not used on multiple threads.
+ NOTREACEHD();
danakj 2016/05/02 22:45:20 typo
Fady Samuel 2016/05/02 22:51:37 Doh! I should've tested compiled locally first. Fi
+ return nullptr;
}
void SurfacesContextProvider::SetLostContextCallback(
« no previous file with comments | « components/mus/surfaces/surfaces_context_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698