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

Unified Diff: ui/gfx/ozone/surface_ozone.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: add missing InitializeCanvas to FileSurface 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
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..feb14d008097e1a61f024e8db7d9cbc7700dc20a
--- /dev/null
+++ b/ui/gfx/ozone/surface_ozone.cc
@@ -0,0 +1,46 @@
+// 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 "ui/gfx/vsync_provider.h"
+
+class SkCanvas;
+
+namespace gfx {
+
+SurfaceOzone::SurfaceOzone() {}
+
+SurfaceOzone::~SurfaceOzone() {}
+
+bool SurfaceOzone::InitializeEGL() { return false; }
+
+intptr_t /* EGLNativeWindowType */ SurfaceOzone::GetEGLNativeWindow() {
+ LOG(FATAL) << "not supported";
+ return 0; // not reached
+}
+
+bool SurfaceOzone::InitializeCanvas() { return false; }
+
+SkCanvas* SurfaceOzone::GetCanvas() {
+ LOG(FATAL) << "not supported";
+ return NULL; // not reached
+}
+
+bool SurfaceOzone::ResizeCanvas(const gfx::Rect& viewport_size) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool SurfaceOzone::SwapCanvas() {
+ NOTIMPLEMENTED();
+ return true;
+}
+
+scoped_ptr<gfx::VSyncProvider> SurfaceOzone::CreateVSyncProvider() {
+ NOTIMPLEMENTED();
+ return scoped_ptr<gfx::VSyncProvider>();
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698