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

Side by Side Diff: services/ui/ws/test_utils.h

Issue 2498073003: Fix GPU service and display initialization race. (Closed)
Patch Set: Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_WS_TEST_UTILS_H_ 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_
6 #define SERVICES_UI_WS_TEST_UTILS_H_ 6 #define SERVICES_UI_WS_TEST_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 std::vector<TestWindowTreeBinding*>* bindings() { return &bindings_; } 515 std::vector<TestWindowTreeBinding*>* bindings() { return &bindings_; }
516 516
517 bool got_on_no_more_displays() const { return got_on_no_more_displays_; } 517 bool got_on_no_more_displays() const { return got_on_no_more_displays_; }
518 518
519 // Creates |num_displays| displays. 519 // Creates |num_displays| displays.
520 void CreateDisplays(int num_displays); 520 void CreateDisplays(int num_displays);
521 521
522 Display* AddDisplay(); 522 Display* AddDisplay();
523 523
524 // WindowServerDelegate: 524 // WindowServerDelegate:
525 void StartDisplayInit() override;
525 void OnNoMoreDisplays() override; 526 void OnNoMoreDisplays() override;
526 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding( 527 std::unique_ptr<WindowTreeBinding> CreateWindowTreeBinding(
527 BindingType type, 528 BindingType type,
528 ws::WindowServer* window_server, 529 ws::WindowServer* window_server,
529 ws::WindowTree* tree, 530 ws::WindowTree* tree,
530 mojom::WindowTreeRequest* tree_request, 531 mojom::WindowTreeRequest* tree_request,
531 mojom::WindowTreeClientPtr* client) override; 532 mojom::WindowTreeClientPtr* client) override;
532 bool IsTestConfig() const override; 533 bool IsTestConfig() const override;
533 void UpdateTouchTransforms() override {} 534 void UpdateTouchTransforms() override {}
534 535
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); 643 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id);
643 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, 644 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree,
644 ServerWindow* parent, 645 ServerWindow* parent,
645 ClientWindowId* client_id); 646 ClientWindowId* client_id);
646 647
647 } // namespace test 648 } // namespace test
648 } // namespace ws 649 } // namespace ws
649 } // namespace ui 650 } // namespace ui
650 651
651 #endif // SERVICES_UI_WS_TEST_UTILS_H_ 652 #endif // SERVICES_UI_WS_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698