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

Side by Side Diff: ui/display/chromeos/display_configurator.h

Issue 2498103002: Fix potential GPU crash caused by VT switching (Closed)
Patch Set: Add doc 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
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 5 #ifndef UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 6 #define UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 bool success); 374 bool success);
375 void OnContentProtectionClientUnregistered(bool success); 375 void OnContentProtectionClientUnregistered(bool success);
376 376
377 // Callbacks used to signal when the native platform has released/taken 377 // Callbacks used to signal when the native platform has released/taken
378 // display control. 378 // display control.
379 void OnDisplayControlTaken(const DisplayControlCallback& callback, 379 void OnDisplayControlTaken(const DisplayControlCallback& callback,
380 bool success); 380 bool success);
381 void OnDisplayControlRelinquished(const DisplayControlCallback& callback, 381 void OnDisplayControlRelinquished(const DisplayControlCallback& callback,
382 bool success); 382 bool success);
383 383
384 // Helper function that sends the actual command.
385 // |callback| is called upon completion of the relinquish command.
386 // |success| is the result from calling SetDisplayPowerInternal() in
387 // RelinquishDisplay().
388 void SendRelinquishDisplayControl(const DisplayControlCallback& callback,
389 bool success);
390
384 StateController* state_controller_; 391 StateController* state_controller_;
385 SoftwareMirroringController* mirroring_controller_; 392 SoftwareMirroringController* mirroring_controller_;
386 std::unique_ptr<NativeDisplayDelegate> native_display_delegate_; 393 std::unique_ptr<NativeDisplayDelegate> native_display_delegate_;
387 394
388 // Used to enable modes which rely on panel fitting. 395 // Used to enable modes which rely on panel fitting.
389 bool is_panel_fitting_enabled_; 396 bool is_panel_fitting_enabled_;
390 397
391 // This is detected by the constructor to determine whether or not we should 398 // This is detected by the constructor to determine whether or not we should
392 // be enabled. If we aren't running on Chrome OS, we can't assume that the 399 // be enabled. If we aren't running on Chrome OS, we can't assume that the
393 // Xrandr X11 extension or the Ozone underlying display hotplug system are 400 // Xrandr X11 extension or the Ozone underlying display hotplug system are
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 484
478 // This must be the last variable. 485 // This must be the last variable.
479 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_; 486 base::WeakPtrFactory<DisplayConfigurator> weak_ptr_factory_;
480 487
481 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator); 488 DISALLOW_COPY_AND_ASSIGN(DisplayConfigurator);
482 }; 489 };
483 490
484 } // namespace ui 491 } // namespace ui
485 492
486 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_ 493 #endif // UI_DISPLAY_CHROMEOS_DISPLAY_CONFIGURATOR_H_
OLDNEW
« no previous file with comments | « no previous file | ui/display/chromeos/display_configurator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698