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

Unified Diff: content/browser/android/in_process/synchronous_compositor_impl.cc

Issue 920443003: Android: SetCreateContextCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduce the diff Created 5 years, 9 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: content/browser/android/in_process/synchronous_compositor_impl.cc
diff --git a/content/browser/android/in_process/synchronous_compositor_impl.cc b/content/browser/android/in_process/synchronous_compositor_impl.cc
index 44d686cb96c9c3435cfb042136a096f9d932376e..81fb3dd9c95412349617dd685ea0ae8411f2f221 100644
--- a/content/browser/android/in_process/synchronous_compositor_impl.cc
+++ b/content/browser/android/in_process/synchronous_compositor_impl.cc
@@ -45,6 +45,12 @@ base::LazyInstance<SynchronousCompositorFactoryImpl>::Leaky g_factory =
} // namespace
+SynchronousCompositor::ContextHolder::ContextHolder() : context(nullptr) {
+}
+
+SynchronousCompositor::ContextHolder::~ContextHolder() {
+}
+
DEFINE_WEB_CONTENTS_USER_DATA_KEY(SynchronousCompositorImpl);
// static
@@ -97,9 +103,9 @@ void SynchronousCompositorImpl::SetClient(
}
// static
-void SynchronousCompositor::SetGpuService(
- scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
- g_factory.Get().SetDeferredGpuService(service);
+void SynchronousCompositor::SetCreateContextCallback(
+ CreateContextCallback callback) {
+ g_factory.Get().SetCreateContextCallback(callback);
}
// static
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_factory_impl.cc ('k') | content/public/browser/android/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698