Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: ui/gfx/ozone/surface_ozone_base.cc

Issue 205433002: ozone: Add OzoneSurface object that is owned by compositor, GLSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/ozone/surface_ozone_base.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/surface_ozone_base.cc
diff --git a/ui/gfx/ozone/surface_ozone_base.cc b/ui/gfx/ozone/surface_ozone_base.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6793778a35f65c16e288110036d4b12686bb6e1c
--- /dev/null
+++ b/ui/gfx/ozone/surface_ozone_base.cc
@@ -0,0 +1,45 @@
+// 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_base.h"
+
+#include "third_party/skia/include/core/SkCanvas.h"
+#include "ui/gfx/vsync_provider.h"
+
+namespace gfx {
+
+SurfaceOzoneBase::SurfaceOzoneBase() {}
+
+SurfaceOzoneBase::~SurfaceOzoneBase() {}
+
+bool SurfaceOzoneBase::InitializeEGL() { return false; }
+
+intptr_t /* EGLNativeWindowType */ SurfaceOzoneBase::GetEGLNativeWindow() {
+ NOTREACHED();
+ return 0;
+}
+
+bool SurfaceOzoneBase::InitializeCanvas() { return false; }
+
+skia::RefPtr<SkCanvas> SurfaceOzoneBase::GetCanvas() {
+ NOTREACHED();
+ return skia::RefPtr<SkCanvas>();
+}
+
+bool SurfaceOzoneBase::ResizeCanvas(const gfx::Size& viewport_size) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool SurfaceOzoneBase::PresentCanvas() {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+scoped_ptr<gfx::VSyncProvider> SurfaceOzoneBase::CreateVSyncProvider() {
+ NOTIMPLEMENTED();
+ return scoped_ptr<gfx::VSyncProvider>();
+}
+
+} // namespace gfx
« no previous file with comments | « ui/gfx/ozone/surface_ozone_base.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698