summaryrefslogtreecommitdiffstats
path: root/gpu/demos
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 04:59:05 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-13 04:59:05 +0000
commit3794728007d3be57b5e52d760717d2957130b68b (patch)
tree50c0859e4d41ff496c43c19489c80ff559e5e440 /gpu/demos
parentd1bab76f8f1519dd69cb68c3fa3cad9228ba8214 (diff)
downloadchromium_src-3794728007d3be57b5e52d760717d2957130b68b.zip
chromium_src-3794728007d3be57b5e52d760717d2957130b68b.tar.gz
chromium_src-3794728007d3be57b5e52d760717d2957130b68b.tar.bz2
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
Diffstat (limited to 'gpu/demos')
-rw-r--r--gpu/demos/framework/pepper.cc2
1 files changed, 1 insertions, 1 deletions
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;