diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 05e5762..9b55799 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -923,7 +923,7 @@ NPError WebPluginDelegatePepper::Device3DGetConfigAttribs( NPError WebPluginDelegatePepper::Device3DCreateContext( int32 config, - int32* attrib_list, + const int32* attrib_list, NPDeviceContext3D** context) { if (!context) return NPERR_GENERIC_ERROR; @@ -936,7 +936,8 @@ NPError WebPluginDelegatePepper::Device3DCreateContext( NPDeviceContext3DConfig old_config; old_config.commandBufferSize = kDefaultCommandBufferSize; if (attrib_list) { - for (int32* attrib_pair = attrib_list; *attrib_pair; attrib_pair += 2) { + for (const int32* attrib_pair = attrib_list; *attrib_pair; + attrib_pair += 2) { switch (attrib_pair[0]) { case NP3DAttrib_CommandBufferSize: old_config.commandBufferSize = attrib_pair[1]; @@ -1755,4 +1756,3 @@ void WebPluginDelegatePepper::DrawSkBitmapToCanvas( CGContextRestoreGState(canvas); } #endif // defined(OS_MACOSX) - diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h index bba5743..be9c1ce 100644 --- a/chrome/renderer/webplugin_delegate_pepper.h +++ b/chrome/renderer/webplugin_delegate_pepper.h @@ -148,7 +148,7 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate, virtual NPError Device3DGetConfigAttribs(int32 config, int32* attrib_list); virtual NPError Device3DCreateContext(int32 config, - int32* attrib_list, + const int32* attrib_list, NPDeviceContext3D** context); virtual NPError Device3DRegisterCallback( NPP id, |