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

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 291473002: ozone: Initialize a subsystem only if necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h" 5 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/environment.h" 8 #include "base/environment.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 InputMethodContextFactoryOzone input_method_context_factory_ozone_; 262 InputMethodContextFactoryOzone input_method_context_factory_ozone_;
263 CursorFactoryOzone cursor_factory_ozone_; 263 CursorFactoryOzone cursor_factory_ozone_;
264 264
265 bool shim_initialized_; 265 bool shim_initialized_;
266 266
267 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest); 267 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest);
268 }; 268 };
269 269
270 } // namespace 270 } // namespace
271 271
272 OzonePlatform* CreateOzonePlatformEgltest() { 272 OzonePlatform* CreateOzonePlatformEgltestForUI() {
273 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 273 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
274 platform->Initialize(); 274 platform->Initialize();
275 return platform; 275 return platform;
276 } 276 }
277 277
278 OzonePlatform* CreateOzonePlatformEgltestForGPU() {
279 return NULL;
280 }
281
278 } // namespace ui 282 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698