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

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: s/SwapCanvas/PresentCanvas 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..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

Powered by Google App Engine
This is Rietveld 408576698