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

Unified Diff: ppapi/examples/gles2/gles2.cc

Issue 375133003: Fixes for re-enabling more MSVC level 4 warnings: ppapi/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt build fix Created 6 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
« no previous file with comments | « ppapi/cpp/image_data.cc ('k') | ppapi/examples/video_decode/video_decode_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/gles2/gles2.cc
diff --git a/ppapi/examples/gles2/gles2.cc b/ppapi/examples/gles2/gles2.cc
index 9fd6b58d9fb66fb405c12d43f7a470e7f0997434..7a2ca050d98c3a0af248c597d7701edaf78bceba 100644
--- a/ppapi/examples/gles2/gles2.cc
+++ b/ppapi/examples/gles2/gles2.cc
@@ -85,11 +85,12 @@ class GLES2DemoInstance : public pp::Instance,
GLES2DemoInstance::GLES2DemoInstance(PP_Instance instance, pp::Module* module)
: pp::Instance(instance), pp::Graphics3DClient(this),
callback_factory_(this),
+ gles2_if_(static_cast<const PPB_OpenGLES2*>(
+ module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE))),
module_(module),
context_(NULL),
fullscreen_(false) {
- assert((gles2_if_ = static_cast<const PPB_OpenGLES2*>(
- module->GetBrowserInterface(PPB_OPENGLES2_INTERFACE))));
+ assert(gles2_if_);
RequestInputEvents(PP_INPUTEVENT_CLASS_MOUSE);
}
« no previous file with comments | « ppapi/cpp/image_data.cc ('k') | ppapi/examples/video_decode/video_decode_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698