Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / aura / bench / bench_main.cc
index 077afd4..4f59dd3 100644 (file)
@@ -29,6 +29,8 @@
 #include "ui/gfx/canvas.h"
 #include "ui/gfx/rect.h"
 #include "ui/gfx/skia_util.h"
+#include "ui/gl/gl_surface.h"
+
 #ifndef GL_GLEXT_PROTOTYPES
 #define GL_GLEXT_PROTOTYPES 1
 #endif
@@ -42,7 +44,6 @@ using base::TimeTicks;
 using ui::Compositor;
 using ui::Layer;
 using ui::LayerDelegate;
-using blink::WebGraphicsContext3D;
 
 namespace {
 
@@ -121,11 +122,6 @@ class BenchCompositorObserver : public ui::CompositorObserver {
   virtual void OnCompositingLockStateChanged(
       Compositor* compositor) OVERRIDE {}
 
-  virtual void OnUpdateVSyncParameters(ui::Compositor* compositor,
-                                       base::TimeTicks timebase,
-                                       base::TimeDelta interval) OVERRIDE {
-  }
-
   virtual void Draw() {}
 
   int frames() const { return frames_; }
@@ -291,6 +287,8 @@ int main(int argc, char** argv) {
 
   base::AtExitManager exit_manager;
 
+  gfx::GLSurface::InitializeOneOff();
+
   // The ContextFactory must exist before any Compositors are created.
   bool allow_test_contexts = false;
   ui::InitializeContextFactoryForTests(allow_test_contexts);