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

Side by Side Diff: android_webview/native/aw_gl_functor.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | base/tracked_objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/native/aw_gl_functor.h" 5 #include "android_webview/native/aw_gl_functor.h"
6 6
7 #include "android_webview/public/browser/draw_gl.h" 7 #include "android_webview/public/browser/draw_gl.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "jni/AwGLFunctor_jni.h" 9 #include "jni/AwGLFunctor_jni.h"
10 10
(...skipping 15 matching lines...) Expand all
26 namespace android_webview { 26 namespace android_webview {
27 27
28 namespace { 28 namespace {
29 int g_instance_count = 0; 29 int g_instance_count = 0;
30 } 30 }
31 31
32 AwGLFunctor::AwGLFunctor(const JavaObjectWeakGlobalRef& java_ref) 32 AwGLFunctor::AwGLFunctor(const JavaObjectWeakGlobalRef& java_ref)
33 : java_ref_(java_ref), 33 : java_ref_(java_ref),
34 render_thread_manager_( 34 render_thread_manager_(
35 this, 35 this,
36 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI)) { 36 BrowserThread::GetTaskRunnerForThread(BrowserThread::UI)) {
37 DCHECK_CURRENTLY_ON(BrowserThread::UI); 37 DCHECK_CURRENTLY_ON(BrowserThread::UI);
38 ++g_instance_count; 38 ++g_instance_count;
39 } 39 }
40 40
41 AwGLFunctor::~AwGLFunctor() { 41 AwGLFunctor::~AwGLFunctor() {
42 DCHECK_CURRENTLY_ON(BrowserThread::UI); 42 DCHECK_CURRENTLY_ON(BrowserThread::UI);
43 --g_instance_count; 43 --g_instance_count;
44 } 44 }
45 45
46 bool AwGLFunctor::RequestInvokeGL(bool wait_for_completion) { 46 bool AwGLFunctor::RequestInvokeGL(bool wait_for_completion) {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 DCHECK_CURRENTLY_ON(BrowserThread::UI); 96 DCHECK_CURRENTLY_ON(BrowserThread::UI);
97 return reinterpret_cast<intptr_t>( 97 return reinterpret_cast<intptr_t>(
98 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj))); 98 new AwGLFunctor(JavaObjectWeakGlobalRef(env, obj)));
99 } 99 }
100 100
101 bool RegisterAwGLFunctor(JNIEnv* env) { 101 bool RegisterAwGLFunctor(JNIEnv* env) {
102 return RegisterNativesImpl(env); 102 return RegisterNativesImpl(env);
103 } 103 }
104 104
105 } // namespace android_webview 105 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | base/tracked_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698