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

Side by Side Diff: ash/system/chromeos/power/power_event_observer.h

Issue 910393002: Disable rendering when suspending on chrome os (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_
6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ 6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 22 matching lines...) Expand all
33 void ScreenIsUnlocked() override; 33 void ScreenIsUnlocked() override;
34 34
35 // Is the screen currently locked? 35 // Is the screen currently locked?
36 bool screen_locked_; 36 bool screen_locked_;
37 37
38 // If set, called when the lock screen has been shown to confirm that the 38 // If set, called when the lock screen has been shown to confirm that the
39 // system is ready to be suspended. 39 // system is ready to be suspended.
40 base::Closure screen_lock_callback_; 40 base::Closure screen_lock_callback_;
41 41
42 private: 42 private:
43 // Tells the compositor for each of the displays to resume sending rendering
44 // requests to the GPU.
45 void ResumeRenderingRequests();
46
47 // Tells the compositor for each of the displays to finish all pending
48 // rendering requests and block any new ones.
49 void StopRenderingRequests();
Daniel Erat 2015/02/11 14:11:42 nit: switch the order of these two methods to mirr
50
43 DISALLOW_COPY_AND_ASSIGN(PowerEventObserver); 51 DISALLOW_COPY_AND_ASSIGN(PowerEventObserver);
44 }; 52 };
45 53
46 } // namespace chromeos 54 } // namespace chromeos
47 55
48 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_ 56 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_EVENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/chromeos/power/power_event_observer.cc » ('j') | ash/system/chromeos/power/power_event_observer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698