Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ui / gfx / ozone / surface_factory_ozone.cc
index 97e28bf..f17c13d 100644 (file)
@@ -7,7 +7,8 @@
 #include <stdlib.h>
 
 #include "base/command_line.h"
-#include "ui/gfx/vsync_provider.h"
+#include "ui/gfx/ozone/surface_ozone_canvas.h"
+#include "ui/gfx/ozone/surface_ozone_egl.h"
 
 namespace gfx {
 
@@ -29,27 +30,20 @@ void SurfaceFactoryOzone::SetInstance(SurfaceFactoryOzone* impl) {
   impl_ = impl;
 }
 
-const char* SurfaceFactoryOzone::DefaultDisplaySpec() {
-  char* envvar = getenv("ASH_DISPLAY_SPEC");
-  if (envvar)
-    return envvar;
-  return  "720x1280*2";
-}
-
-gfx::Screen* SurfaceFactoryOzone::CreateDesktopScreen() {
-  return NULL;
-}
-
 intptr_t SurfaceFactoryOzone::GetNativeDisplay() {
   return 0;
 }
 
-bool SurfaceFactoryOzone::SchedulePageFlip(gfx::AcceleratedWidget w) {
-  return true;
+scoped_ptr<SurfaceOzoneEGL> SurfaceFactoryOzone::CreateEGLSurfaceForWidget(
+      gfx::AcceleratedWidget widget) {
+  NOTIMPLEMENTED();
+  return scoped_ptr<SurfaceOzoneEGL>();
 }
 
-SkCanvas* SurfaceFactoryOzone::GetCanvasForWidget(gfx::AcceleratedWidget w) {
-  return NULL;
+scoped_ptr<SurfaceOzoneCanvas> SurfaceFactoryOzone::CreateCanvasForWidget(
+      gfx::AcceleratedWidget widget) {
+  NOTIMPLEMENTED();
+  return scoped_ptr<SurfaceOzoneCanvas>();
 }
 
 const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
@@ -57,4 +51,26 @@ const int32* SurfaceFactoryOzone::GetEGLSurfaceProperties(
   return desired_attributes;
 }
 
+
+gfx::OverlayCandidatesOzone* SurfaceFactoryOzone::GetOverlayCandidates(
+    gfx::AcceleratedWidget w) {
+  return NULL;
+}
+
+void SurfaceFactoryOzone::ScheduleOverlayPlane(
+    gfx::AcceleratedWidget w,
+    int plane_z_order,
+    gfx::OverlayTransform plane_transform,
+    gfx::NativeBufferOzone buffer,
+    const gfx::Rect& display_bounds,
+    gfx::RectF crop_rect) {
+  NOTREACHED();
+}
+
+gfx::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer(
+    gfx::Size size,
+    BufferFormat format) {
+  return 0;
+}
+
 }  // namespace gfx