From fc72bb18b111ff63e57135d97de6d59291f3b7b8 Mon Sep 17 00:00:00 2001 From: "rsleevi@chromium.org" <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Sun, 2 Jun 2013 21:13:46 +0000 Subject: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" Linux fixes BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/16294003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203624 0039d316-1c4b-4281-b951-d872f2087c98 --- content/common/gpu/client/gl_helper_scaling.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content/common/gpu/client/gl_helper_scaling.cc') diff --git a/content/common/gpu/client/gl_helper_scaling.cc b/content/common/gpu/client/gl_helper_scaling.cc index 220845e..7de3fc0 100644 --- a/content/common/gpu/client/gl_helper_scaling.cc +++ b/content/common/gpu/client/gl_helper_scaling.cc @@ -489,7 +489,7 @@ GLHelperScaling::GetShaderProgram(ShaderType type, bool swizzle) { ShaderProgramKeyType key(type, swizzle); scoped_refptr<ShaderProgram>& cache_entry(shader_programs_[key]); - if (!cache_entry) { + if (!cache_entry.get()) { cache_entry = new ShaderProgram(context_, helper_); std::basic_string<WebKit::WGC3Dchar> vertex_program; std::basic_string<WebKit::WGC3Dchar> fragment_program; -- cgit v1.1