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

Unified Diff: ppapi/proxy/ppb_graphics_3d_proxy.cc

Issue 7530010: Added PPB_Graphics3D_Dev::Resize to let plugins resize the backing surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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
Index: ppapi/proxy/ppb_graphics_3d_proxy.cc
===================================================================
--- ppapi/proxy/ppb_graphics_3d_proxy.cc (revision 94518)
+++ ppapi/proxy/ppb_graphics_3d_proxy.cc (working copy)
@@ -431,12 +431,13 @@
std::vector<int32_t> attribs;
if (attrib_list) {
for (const int32_t* attr = attrib_list;
- *attr != PP_GRAPHICS3DATTRIB_NONE;
- ++attr) {
- attribs.push_back(*attr);
+ attr[0] != PP_GRAPHICS3DATTRIB_NONE;
+ attr += 2) {
+ attribs.push_back(attr[0]);
+ attribs.push_back(attr[1]);
}
- attribs.push_back(PP_GRAPHICS3DATTRIB_NONE);
}
+ attribs.push_back(PP_GRAPHICS3DATTRIB_NONE);
HostResource result;
dispatcher->Send(new PpapiHostMsg_PPBGraphics3D_Create(

Powered by Google App Engine
This is Rietveld 408576698