 +#include <ppapi/cpp/graphics_2d.h>
 +#include <ppapi/cpp/completion_callback.h>
 +#include <ppapi/cpp/image_data.h>
++#include <ppapi/c/pp_errors.h>
 +
 +pp::Instance* gNaclPPInstance;
 +static int gNaclVideoWidth;
 +static int gNaclVideoHeight;
++
++static int kNaClFlushDelayMs = 20;
 +
 +extern "C" {
 +

+  }
+  delete _this->hidden->context2d;
+  delete _this->hidden->image_data;
+}
+} // extern "C"
diff --git SDL-1.2.14/src/video/nacl/SDL_naclvideo.h SDL-1.2.14/src/video/nacl/SDL_naclvideo.h
new file mode 100644
index 0000000..09480c8
--- /dev/null
+++ SDL-1.2.14/src/video/nacl/SDL_naclvideo.h
@@ -0,0 +1,33 @@
+#include "SDL_config.h"
+
+#ifndef _SDL_naclvideo_h

+extern void NACL_PumpEvents(_THIS);
diff --git SDL-1.2.14/src/video/nacl/SDL_naclvideo.cc SDL-1.2.14/src/video/nacl/SDL_naclvideo.cc
new file mode 100644
index 0000000..2c9f6e5
--- /dev/null
+++ SDL-1.2.14/src/video/nacl/SDL_naclvideo.cc
@@ -0,0 +1,269 @@
+#include "SDL_config.h"
+
+#include <assert.h>
