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

Side by Side Diff: ash/display/display_change_observer_chromeos.h

Issue 138903025: Read compositor VSync information from platform, when possible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 041e3518 Cleaned up. Created 6 years, 11 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 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_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H 5 #ifndef ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H
6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H 6 #define ASH_DISPLAY_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 const chromeos::OutputConfigurator::OutputSnapshot& output); 27 const chromeos::OutputConfigurator::OutputSnapshot& output);
28 28
29 DisplayChangeObserver(); 29 DisplayChangeObserver();
30 virtual ~DisplayChangeObserver(); 30 virtual ~DisplayChangeObserver();
31 31
32 // chromeos::OutputConfigurator::StateController overrides: 32 // chromeos::OutputConfigurator::StateController overrides:
33 virtual chromeos::OutputState GetStateForDisplayIds( 33 virtual chromeos::OutputState GetStateForDisplayIds(
34 const std::vector<int64>& outputs) const OVERRIDE; 34 const std::vector<int64>& outputs) const OVERRIDE;
35 virtual bool GetResolutionForDisplayId(int64 display_id, 35 virtual bool GetResolutionForDisplayId(int64 display_id,
36 int* width, 36 int* width,
37 int* height) const OVERRIDE; 37 int* height,
38 float* refresh_rate) const OVERRIDE;
38 39
39 // Overriden from chromeos::OutputConfigurator::Observer: 40 // Overriden from chromeos::OutputConfigurator::Observer:
40 virtual void OnDisplayModeChanged( 41 virtual void OnDisplayModeChanged(
41 const std::vector<chromeos::OutputConfigurator::OutputSnapshot>& outputs) 42 const std::vector<chromeos::OutputConfigurator::OutputSnapshot>& outputs)
42 OVERRIDE; 43 OVERRIDE;
43 44
44 // Overriden from ShellObserver: 45 // Overriden from ShellObserver:
45 virtual void OnAppTerminating() OVERRIDE; 46 virtual void OnAppTerminating() OVERRIDE;
46 47
47 private: 48 private:
48 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver); 49 DISALLOW_COPY_AND_ASSIGN(DisplayChangeObserver);
49 }; 50 };
50 51
51 } // namespace internal 52 } // namespace internal
52 } // namespace ash 53 } // namespace ash
53 54
54 #endif // ASH_DISPLAY_AURA_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H 55 #endif // ASH_DISPLAY_AURA_DISPLAY_CHANGE_OBSERVER_CHROMEOS_H
OLDNEW
« no previous file with comments | « no previous file | ash/display/display_change_observer_chromeos.cc » ('j') | ash/display/display_info.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698