summaryrefslogtreecommitdiffstats
path: root/ui/ozone/demo
diff options
context:
space:
mode:
authortiago.vignatti <tiago.vignatti@intel.com>2014-09-10 07:49:46 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-10 14:52:54 +0000
commit91af9a880b03c43c0a3b5d1da88b0bcb03603752 (patch)
tree180f652bbebcb5421d1d40996be4c9ec57d1e872 /ui/ozone/demo
parent2c53e25ada73dec44cd081df7902a5a7f7fa9785 (diff)
downloadchromium_src-91af9a880b03c43c0a3b5d1da88b0bcb03603752.zip
chromium_src-91af9a880b03c43c0a3b5d1da88b0bcb03603752.tar.gz
chromium_src-91af9a880b03c43c0a3b5d1da88b0bcb03603752.tar.bz2
Fix more uses of T* conversion operator from scoped_refptr<T> which is now removed
Fix more uses of T* conversion operator from scoped_refptr<T> which is now removed. Please see https://codereview.chromium.org/510323002 for reference. TEST=ozone_demo and content_shell under Ozone-GBM BUG=none NOTRY=true Review URL: https://codereview.chromium.org/552133004 Cr-Commit-Position: refs/heads/master@{#294172}
Diffstat (limited to 'ui/ozone/demo')
-rw-r--r--ui/ozone/demo/ozone_demo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index 309b138..42a6267 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;