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

Unified Diff: ui/gl/gl_image_ozone_native_pixmap_unittest.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 | « ui/gfx/win/direct_write.cc ('k') | ui/ozone/platform/drm/host/drm_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_ozone_native_pixmap_unittest.cc
diff --git a/ui/gl/gl_image_ozone_native_pixmap_unittest.cc b/ui/gl/gl_image_ozone_native_pixmap_unittest.cc
index 223ba6980265d186830c794424e9700dbfece1f5..1e5ef1325f03c42c0d02258295f13c21188a44bd 100644
--- a/ui/gl/gl_image_ozone_native_pixmap_unittest.cc
+++ b/ui/gl/gl_image_ozone_native_pixmap_unittest.cc
@@ -25,7 +25,7 @@ class GLImageOzoneNativePixmapTestDelegate {
surface_factory->CreateNativePixmap(gfx::kNullAcceleratedWidget, size,
gfx::BufferFormat::RGBA_8888,
gfx::BufferUsage::SCANOUT);
- EXPECT_TRUE(pixmap != nullptr);
+ EXPECT_TRUE(pixmap);
scoped_refptr<gfx::GLImageOzoneNativePixmap> image(
new gfx::GLImageOzoneNativePixmap(size, GL_RGBA));
EXPECT_TRUE(image->Initialize(pixmap.get(), pixmap->GetBufferFormat()));
« no previous file with comments | « ui/gfx/win/direct_write.cc ('k') | ui/ozone/platform/drm/host/drm_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698