#include <stdlib.h>
#include "base/command_line.h"
+#include "ui/ozone/public/native_pixmap.h"
#include "ui/ozone/public/surface_ozone_canvas.h"
#include "ui/ozone/public/surface_ozone_egl.h"
SurfaceFactoryOzone* SurfaceFactoryOzone::impl_ = NULL;
SurfaceFactoryOzone::SurfaceFactoryOzone() {
- CHECK(!impl_) << "There should only be a single SurfaceFactoryOzone.";
+ DCHECK(!impl_) << "There should only be a single SurfaceFactoryOzone.";
impl_ = this;
}
SurfaceFactoryOzone::~SurfaceFactoryOzone() {
- CHECK_EQ(impl_, this);
+ DCHECK_EQ(impl_, this);
impl_ = NULL;
}
SurfaceFactoryOzone* SurfaceFactoryOzone::GetInstance() {
- CHECK(impl_) << "No SurfaceFactoryOzone implementation set.";
+ DCHECK(impl_) << "No SurfaceFactoryOzone implementation set.";
return impl_;
}
return NULL;
}
-void SurfaceFactoryOzone::ScheduleOverlayPlane(
- gfx::AcceleratedWidget w,
+scoped_refptr<ui::NativePixmap> SurfaceFactoryOzone::CreateNativePixmap(
+ gfx::Size size,
+ BufferFormat format) {
+ return NULL;
+}
+
+bool SurfaceFactoryOzone::ScheduleOverlayPlane(
+ gfx::AcceleratedWidget widget,
int plane_z_order,
gfx::OverlayTransform plane_transform,
- ui::NativeBufferOzone buffer,
+ scoped_refptr<NativePixmap> buffer,
const gfx::Rect& display_bounds,
- gfx::RectF crop_rect) {
- NOTREACHED();
+ const gfx::RectF& crop_rect) {
+ return false;
}
-ui::NativeBufferOzone SurfaceFactoryOzone::CreateNativeBuffer(
- gfx::Size size,
- BufferFormat format) {
- return 0;
+bool SurfaceFactoryOzone::CanShowPrimaryPlaneAsOverlay() {
+ return false;
}
-
} // namespace ui