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

Unified Diff: ui/ozone/platform/egltest/ozone_platform_egltest.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: Introduce NativePixmapClient Created 5 years, 7 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/platform/egltest/ozone_platform_egltest.cc
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
index 31f35a6e33f597ee27d6ba05ce9eaf9f9daef6c0..441d282605e775834dcb244007dea1dba07901c0 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -27,6 +27,7 @@
#include "ui/ozone/public/cursor_factory_ozone.h"
#include "ui/ozone/public/gpu_platform_support.h"
#include "ui/ozone/public/gpu_platform_support_host.h"
+#include "ui/ozone/public/native_pixmap_client.h"
#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/ozone_switches.h"
#include "ui/ozone/public/surface_factory_ozone.h"
@@ -401,6 +402,15 @@ class OzonePlatformEgltest : public OzonePlatform {
DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest);
};
+class NativePixmapClientEgltest : public NativePixmapClient {
+ public:
+ NativePixmapClientEgltest() {}
+ ~NativePixmapClientEgltest() override {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativePixmapClientEgltest);
+};
+
} // namespace
OzonePlatform* CreateOzonePlatformEgltest() {
@@ -409,4 +419,8 @@ OzonePlatform* CreateOzonePlatformEgltest() {
return platform;
}
+NativePixmapClient* CreateNativePixmapClientEgltest() {
+ return new NativePixmapClientEgltest;
+}
+
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698