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

Unified Diff: ui/ozone/demo/ozone_demo.cc

Issue 552133004: Fix more uses of T* conversion operator from scoped_refptr<T> which is now removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index 309b138edaec12cea764834574069cb35f80b6a5..42a626757b535f67cda1d22ea1b12e062c610396 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -86,14 +86,14 @@ class DemoWindow : public ui::PlatformWindowDelegate {
private:
bool InitializeGLSurface() {
surface_ = gfx::GLSurface::CreateViewGLSurface(GetAcceleratedWidget());
- if (!surface_) {
+ if (!surface_.get()) {
LOG(ERROR) << "Failed to create GL surface";
return false;
}
context_ = gfx::GLContext::CreateGLContext(
NULL, surface_.get(), gfx::PreferIntegratedGpu);
- if (!context_) {
+ if (!context_.get()) {
LOG(ERROR) << "Failed to create GL context";
surface_ = NULL;
return false;
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698