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

Unified Diff: mojo/cc/context_provider_mojo.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.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 | « mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/cc/context_provider_mojo.h
diff --git a/mojo/cc/context_provider_mojo.h b/mojo/cc/context_provider_mojo.h
index 014b9734e0fe9a0e33899c519773fb01d348b7bf..9b55a85219c68b0500d0a1cf1115dc6c9fe2b4fe 100644
--- a/mojo/cc/context_provider_mojo.h
+++ b/mojo/cc/context_provider_mojo.h
@@ -6,6 +6,7 @@
#define MOJO_CC_CONTEXT_PROVIDER_MOJO_H_
#include "base/macros.h"
+#include "base/synchronization/lock.h"
#include "cc/output/context_provider.h"
#include "mojo/public/c/gles2/gles2.h"
#include "mojo/public/cpp/system/core.h"
@@ -31,6 +32,8 @@ class ContextProviderMojo : public cc::ContextProvider {
void SetMemoryPolicyChangedCallback(
const MemoryPolicyChangedCallback& memory_policy_changed_callback)
override {}
+ void SetupLock() override;
+ base::Lock* GetLock() override;
protected:
friend class base::RefCountedThreadSafe<ContextProviderMojo>;
@@ -47,6 +50,8 @@ class ContextProviderMojo : public cc::ContextProvider {
MojoGLES2Context context_;
bool context_lost_;
+ base::Lock context_lock_;
+
DISALLOW_COPY_AND_ASSIGN(ContextProviderMojo);
};
« no previous file with comments | « mojo/android/javatests/src/org/chromium/mojo/MojoTestCase.java ('k') | mojo/cc/context_provider_mojo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698