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

Unified Diff: ui/aura/env.h

Issue 2803523002: Always create ClientNativePixmapFactory in chrome --mash (Closed)
Patch Set: better location for pixmap factory init Created 3 years, 8 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/aura/env.h
diff --git a/ui/aura/env.h b/ui/aura/env.h
index 1f1ba63c1db34591ac2650dc26ed5cb74166c94e..01017b5ab551ca5e960dba70b1132afae0345d2a 100644
--- a/ui/aura/env.h
+++ b/ui/aura/env.h
@@ -16,6 +16,14 @@
#include "ui/events/event_target.h"
#include "ui/gfx/geometry/point.h"
+#if defined(USE_OZONE)
+#include "ui/ozone/public/client_native_pixmap_factory_ozone.h"
+
+namespace gfx {
+class ClientNativePixmapFactory;
+}
+#endif
+
namespace ui {
class ContextFactory;
class ContextFactoryPrivate;
@@ -173,6 +181,12 @@ class AURA_EXPORT Env : public ui::EventTarget,
std::unique_ptr<InputStateLookup> input_state_lookup_;
std::unique_ptr<ui::PlatformEventSource> event_source_;
+#if defined(USE_OZONE)
+ // Factory for pixmaps that can use be transported from the client to the GPU
+ // process using a low-level ozone-provided platform specific mechanism.
+ std::unique_ptr<gfx::ClientNativePixmapFactory> native_pixmap_factory_;
+#endif
+
ui::ContextFactory* context_factory_;
ui::ContextFactoryPrivate* context_factory_private_;
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | ui/aura/env.cc » ('j') | ui/aura/env.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698