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

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

Issue 1043233003: ozone: Add post message loop initialization hook (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: return without failing Created 5 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 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/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); 371 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
372 } 372 }
373 373
374 void InitializeGPU() override { 374 void InitializeGPU() override {
375 if (!surface_factory_ozone_) 375 if (!surface_factory_ozone_)
376 surface_factory_ozone_.reset( 376 surface_factory_ozone_.reset(
377 new SurfaceFactoryEgltest(&eglplatform_shim_)); 377 new SurfaceFactoryEgltest(&eglplatform_shim_));
378 gpu_platform_support_.reset(CreateStubGpuPlatformSupport()); 378 gpu_platform_support_.reset(CreateStubGpuPlatformSupport());
379 } 379 }
380 380
381 void InitializeGpuPostMainLoop() override {}
382
381 private: 383 private:
382 LibeglplatformShimLoader eglplatform_shim_; 384 LibeglplatformShimLoader eglplatform_shim_;
383 scoped_ptr<DeviceManager> device_manager_; 385 scoped_ptr<DeviceManager> device_manager_;
384 scoped_ptr<SurfaceFactoryEgltest> surface_factory_ozone_; 386 scoped_ptr<SurfaceFactoryEgltest> surface_factory_ozone_;
385 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; 387 scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
386 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; 388 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
387 scoped_ptr<GpuPlatformSupport> gpu_platform_support_; 389 scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
388 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; 390 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_;
389 391
390 bool shim_initialized_; 392 bool shim_initialized_;
391 393
392 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest); 394 DISALLOW_COPY_AND_ASSIGN(OzonePlatformEgltest);
393 }; 395 };
394 396
395 } // namespace 397 } // namespace
396 398
397 OzonePlatform* CreateOzonePlatformEgltest() { 399 OzonePlatform* CreateOzonePlatformEgltest() {
398 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 400 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
399 platform->Initialize(); 401 platform->Initialize();
400 return platform; 402 return platform;
401 } 403 }
402 404
403 } // namespace ui 405 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/ozone_platform_gbm.cc ('k') | ui/ozone/platform/test/ozone_platform_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698