#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 {
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(
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