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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 1958823002: Fix implicit access to raw pointer of scoped_refptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Splitting out change to scoped_refptr to follow up patch. Created 4 years, 7 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 | « content/browser/media/webrtc/webrtc_internals.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index 0b7968802969fd5486832b46cf041edb11420e3c..6b2e21a313efae0f1b7b685332fac5f690969ea2 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -348,7 +348,7 @@ CompositorImpl::SharedVulkanContextProviderAndroid() {
switches::kEnableVulkan)) {
scoped_refptr<cc::VulkanInProcessContextProvider>* context_provider =
g_shared_vulkan_context_provider_android_.Pointer();
- if (*context_provider == NULL)
+ if (!*context_provider)
*context_provider = cc::VulkanInProcessContextProvider::Create();
return *context_provider;
}
« no previous file with comments | « content/browser/media/webrtc/webrtc_internals.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698