Chromium Code Reviews| Index: ui/gfx/ozone/surface_ozone.cc |
| diff --git a/ui/gfx/ozone/surface_ozone.cc b/ui/gfx/ozone/surface_ozone.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..64b195cd356fc5d7f253c9a28121165313788bfc |
| --- /dev/null |
| +++ b/ui/gfx/ozone/surface_ozone.cc |
| @@ -0,0 +1,47 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "ui/gfx/ozone/surface_ozone.h" |
| + |
| +#include "third_party/skia/include/core/SkCanvas.h" |
| +#include "ui/gfx/vsync_provider.h" |
| + |
| +class SkCanvas; |
| + |
| +namespace gfx { |
| + |
| +SurfaceOzone::SurfaceOzone() {} |
| + |
| +SurfaceOzone::~SurfaceOzone() {} |
| + |
| +bool SurfaceOzone::InitializeEGL() { return false; } |
| + |
| +intptr_t /* EGLNativeWindowType */ SurfaceOzone::GetEGLNativeWindow() { |
| + NOTREACHED(); |
| + return 0; // not reached |
|
piman
2014/03/27 21:20:56
nit: comment is superfluous
spang
2014/03/28 16:09:13
Done.
|
| +} |
| + |
| +bool SurfaceOzone::InitializeCanvas() { return false; } |
| + |
| +skia::RefPtr<SkCanvas> SurfaceOzone::GetCanvas() { |
| + NOTREACHED(); |
| + return skia::RefPtr<SkCanvas>(); // not reached |
|
piman
2014/03/27 21:20:56
nit: comment is superfluous
spang
2014/03/28 16:09:13
Done.
|
| +} |
| + |
| +bool SurfaceOzone::ResizeCanvas(const gfx::Size& viewport_size) { |
| + NOTIMPLEMENTED(); |
| + return false; |
| +} |
| + |
| +bool SurfaceOzone::PresentCanvas() { |
| + NOTIMPLEMENTED(); |
| + return true; |
| +} |
| + |
| +scoped_ptr<gfx::VSyncProvider> SurfaceOzone::CreateVSyncProvider() { |
| + NOTIMPLEMENTED(); |
| + return scoped_ptr<gfx::VSyncProvider>(); |
| +} |
| + |
| +} // namespace gfx |