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

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

Issue 132543002: Not for review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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/overlay_hal_ozone.h ('k') | ui/gfx/ozone/surface_factory_ozone.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/ozone/overlay_hal_ozone.cc
diff --git a/ui/gfx/ozone/overlay_hal_ozone.cc b/ui/gfx/ozone/overlay_hal_ozone.cc
new file mode 100644
index 0000000000000000000000000000000000000000..77bdaeecc2929a1172ae86dcb268b28f80087301
--- /dev/null
+++ b/ui/gfx/ozone/overlay_hal_ozone.cc
@@ -0,0 +1,41 @@
+// Copyright (c) 2013 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/overlay_hal_ozone.h"
+
+#include <stdlib.h>
+
+namespace gfx {
+
+// static
+OverlayHALOzone* OverlayHALOzone::impl_ = NULL;
+
+OverlayHALOzone::SurfaceCandidate::SurfaceCandidate()
+ : format(UNKNOWN), overlay_handled(false) {}
+
+OverlayHALOzone::SurfaceCandidate::~SurfaceCandidate() {}
+
+class OverlayHALOzoneStub : public OverlayHALOzone {
+ public:
+ OverlayHALOzoneStub() {}
+ virtual ~OverlayHALOzoneStub() {}
+
+ virtual void CheckOverlaySupport(std::vector<SurfaceCandidate>* surfaces)
+ OVERRIDE {}
+};
+
+OverlayHALOzone::OverlayHALOzone() {}
+
+OverlayHALOzone::~OverlayHALOzone() {}
+
+OverlayHALOzone* OverlayHALOzone::GetInstance() { return impl_; }
+
+void OverlayHALOzone::SetInstance(OverlayHALOzone* impl) { impl_ = impl; }
+
+// static
+OverlayHALOzone* OverlayHALOzone::CreateTestHelper() {
+ return new OverlayHALOzoneStub;
+}
+
+} // namespace gfx
« no previous file with comments | « ui/gfx/ozone/overlay_hal_ozone.h ('k') | ui/gfx/ozone/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698