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

Unified Diff: ui/ozone/common/stub_native_pixmap_manager.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to crrev.com/1258713002 Created 5 years, 5 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/ozone/common/stub_native_pixmap_manager.cc
diff --git a/ui/ozone/common/stub_native_pixmap_manager.cc b/ui/ozone/common/stub_native_pixmap_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6efc1cd7c3c8726c2fb46bedb3d337407af4019f
--- /dev/null
+++ b/ui/ozone/common/stub_native_pixmap_manager.cc
@@ -0,0 +1,42 @@
+// Copyright 2015 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/ozone/common/stub_native_pixmap_manager.h"
+
+#include "base/file_descriptor_posix.h"
+
+namespace ui {
+
+namespace {
+
+class StubNativePixmapManager : public NativePixmapManager {
+ public:
+ StubNativePixmapManager() {}
+ ~StubNativePixmapManager() override {}
+
+ // NativePixmapManager:
+ std::vector<Configuration> GetSupportedNativePixmapConfigurations()
+ const override {
+ return std::vector<Configuration>();
+ }
+ scoped_refptr<NativePixmap> ImportNativePixmap(
+ base::FileDescriptor handle,
+ gfx::Size size,
+ SurfaceFactoryOzone::BufferFormat format,
+ SurfaceFactoryOzone::BufferUsage usage) override {
+ NOTIMPLEMENTED();
+ return nullptr;
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(StubNativePixmapManager);
+};
+
+} // namespace
+
+NativePixmapManager* CreateStubNativePixmapManager() {
+ return new StubNativePixmapManager;
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698