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

Unified Diff: ui/ozone/common/stub_client_native_pixmap_factory.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: fix extensions_unittests Created 5 years, 4 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/ozone/common/stub_client_native_pixmap_factory.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/stub_client_native_pixmap_factory.cc
diff --git a/ui/ozone/common/stub_client_native_pixmap_factory.cc b/ui/ozone/common/stub_client_native_pixmap_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2b74cf81cce4733f873d9f1b959494fec3d884ae
--- /dev/null
+++ b/ui/ozone/common/stub_client_native_pixmap_factory.cc
@@ -0,0 +1,41 @@
+// 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_client_native_pixmap_factory.h"
+
+#include "base/file_descriptor_posix.h"
+
+namespace ui {
+
+namespace {
+
+class StubClientNativePixmapFactory : public ClientNativePixmapFactory {
+ public:
+ StubClientNativePixmapFactory() {}
+ ~StubClientNativePixmapFactory() override {}
+
+ // ClientNativePixmapFactory:
+ std::vector<Configuration> GetSupportedConfigurations() const override {
+ return std::vector<Configuration>();
+ }
+ scoped_ptr<ClientNativePixmap> ImportNativePixmap(
+ const base::FileDescriptor& handle,
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ gfx::BufferUsage usage) override {
+ NOTIMPLEMENTED();
+ return nullptr;
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(StubClientNativePixmapFactory);
+};
+
+} // namespace
+
+ClientNativePixmapFactory* CreateStubClientNativePixmapFactory() {
+ return new StubClientNativePixmapFactory;
+}
+
+} // namespace ui
« no previous file with comments | « ui/ozone/common/stub_client_native_pixmap_factory.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698