From 3794728007d3be57b5e52d760717d2957130b68b Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Tue, 13 Sep 2011 04:59:05 +0000 Subject: Use Instance* in the Graphics3D constructor rather than Instance&, for consistency. I also created a new 2-arg constructor since the share_context will normally be empty, and it's less clear what to use there if you don't have a shared context. I copied comments from the C interface to the C++ one, and converted the comments in the C header file to C-style comments from C++ ones. The documentation still needs some Doxygen love, but we can worry about that later. Review URL: http://codereview.chromium.org/7867048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100865 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/demos/framework/pepper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpu/demos') diff --git a/gpu/demos/framework/pepper.cc b/gpu/demos/framework/pepper.cc index 3a2e180b..831e094 100644 --- a/gpu/demos/framework/pepper.cc +++ b/gpu/demos/framework/pepper.cc @@ -88,7 +88,7 @@ class PluginInstance : public pp::Instance { PP_GRAPHICS3DATTRIB_HEIGHT, size_.height(), PP_GRAPHICS3DATTRIB_NONE }; - context_ = pp::Graphics3D(*this, pp::Graphics3D(), attribs); + context_ = pp::Graphics3D(this, attribs); if (context_.is_null()) return; -- cgit v1.1