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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_ENV_H_ 5 #ifndef UI_AURA_ENV_H_
6 #define UI_AURA_ENV_H_ 6 #define UI_AURA_ENV_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "base/supports_user_data.h" 12 #include "base/supports_user_data.h"
13 #include "ui/aura/aura_export.h" 13 #include "ui/aura/aura_export.h"
14 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h" 14 #include "ui/base/dragdrop/os_exchange_data_provider_factory.h"
15 #include "ui/events/event_handler.h" 15 #include "ui/events/event_handler.h"
16 #include "ui/events/event_target.h" 16 #include "ui/events/event_target.h"
17 #include "ui/gfx/geometry/point.h" 17 #include "ui/gfx/geometry/point.h"
18 18
19 #if defined(USE_OZONE)
20 #include "ui/ozone/public/client_native_pixmap_factory_ozone.h"
21
22 namespace gfx {
23 class ClientNativePixmapFactory;
24 }
25 #endif
26
19 namespace ui { 27 namespace ui {
20 class ContextFactory; 28 class ContextFactory;
21 class ContextFactoryPrivate; 29 class ContextFactoryPrivate;
22 class PlatformEventSource; 30 class PlatformEventSource;
23 } 31 }
24 namespace aura { 32 namespace aura {
25 33
26 namespace client { 34 namespace client {
27 class FocusClient; 35 class FocusClient;
28 } 36 }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 bool get_last_mouse_location_from_mus_; 174 bool get_last_mouse_location_from_mus_;
167 // This may be set to true in tests to force using |last_mouse_location_| 175 // This may be set to true in tests to force using |last_mouse_location_|
168 // rather than querying WindowTreeClient. 176 // rather than querying WindowTreeClient.
169 bool always_use_last_mouse_location_ = false; 177 bool always_use_last_mouse_location_ = false;
170 // Whether we set ourselves as the OSExchangeDataProviderFactory. 178 // Whether we set ourselves as the OSExchangeDataProviderFactory.
171 bool is_os_exchange_data_provider_factory_ = false; 179 bool is_os_exchange_data_provider_factory_ = false;
172 180
173 std::unique_ptr<InputStateLookup> input_state_lookup_; 181 std::unique_ptr<InputStateLookup> input_state_lookup_;
174 std::unique_ptr<ui::PlatformEventSource> event_source_; 182 std::unique_ptr<ui::PlatformEventSource> event_source_;
175 183
184 #if defined(USE_OZONE)
185 // Factory for pixmaps that can use be transported from the client to the GPU
186 // process using a low-level ozone-provided platform specific mechanism.
187 std::unique_ptr<gfx::ClientNativePixmapFactory> native_pixmap_factory_;
188 #endif
189
176 ui::ContextFactory* context_factory_; 190 ui::ContextFactory* context_factory_;
177 ui::ContextFactoryPrivate* context_factory_private_; 191 ui::ContextFactoryPrivate* context_factory_private_;
178 192
179 Window* active_focus_client_root_ = nullptr; 193 Window* active_focus_client_root_ = nullptr;
180 client::FocusClient* active_focus_client_ = nullptr; 194 client::FocusClient* active_focus_client_ = nullptr;
181 std::unique_ptr<ActiveFocusClientWindowObserver> 195 std::unique_ptr<ActiveFocusClientWindowObserver>
182 active_focus_client_window_observer_; 196 active_focus_client_window_observer_;
183 197
184 DISALLOW_COPY_AND_ASSIGN(Env); 198 DISALLOW_COPY_AND_ASSIGN(Env);
185 }; 199 };
186 200
187 } // namespace aura 201 } // namespace aura
188 202
189 #endif // UI_AURA_ENV_H_ 203 #endif // UI_AURA_ENV_H_
OLDNEW
« 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