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

Unified Diff: android_webview/browser/deferred_gpu_command_service.cc

Issue 634583004: Remove implicit conversions from scoped_refptr to T* in android_webview/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/deferred_gpu_command_service.cc
diff --git a/android_webview/browser/deferred_gpu_command_service.cc b/android_webview/browser/deferred_gpu_command_service.cc
index bc1eec0e6c2d42bbcf0f6931d2b44c8fabe5bd33..b9b77dd0e6864d3e3f400ce61bf0fef79465f03a 100644
--- a/android_webview/browser/deferred_gpu_command_service.cc
+++ b/android_webview/browser/deferred_gpu_command_service.cc
@@ -30,14 +30,14 @@ ScopedAllowGL::ScopedAllowGL() {
DCHECK(!allow_gl.Get().Get());
allow_gl.Get().Set(true);
- if (g_service.Get())
+ if (g_service.Get().get())
g_service.Get()->RunTasks();
}
ScopedAllowGL::~ScopedAllowGL() {
allow_gl.Get().Set(false);
- DeferredGpuCommandService* service = g_service.Get();
+ DeferredGpuCommandService* service = g_service.Get().get();
if (service) {
service->RunTasks();
if (service->IdleQueueSize()) {
@@ -48,7 +48,7 @@ ScopedAllowGL::~ScopedAllowGL() {
// static
void DeferredGpuCommandService::SetInstance() {
- if (!g_service.Get()) {
+ if (!g_service.Get().get()) {
g_service.Get() = new DeferredGpuCommandService;
content::SynchronousCompositor::SetGpuService(g_service.Get());
}
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698