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

Side by Side Diff: chromeos/display/output_configurator_unittest.cc

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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chromeos/display/output_configurator.h" 5 #include "chromeos/display/output_configurator.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstdarg> 8 #include <cstdarg>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 class TestStateController : public OutputConfigurator::StateController { 314 class TestStateController : public OutputConfigurator::StateController {
315 public: 315 public:
316 TestStateController() : state_(STATE_DUAL_EXTENDED) {} 316 TestStateController() : state_(STATE_DUAL_EXTENDED) {}
317 virtual ~TestStateController() {} 317 virtual ~TestStateController() {}
318 318
319 void set_state(OutputState state) { state_ = state; } 319 void set_state(OutputState state) { state_ = state; }
320 320
321 // OutputConfigurator::StateController overrides: 321 // OutputConfigurator::StateController overrides:
322 virtual OutputState GetStateForDisplayIds( 322 virtual OutputState GetStateForDisplayIds(
323 const std::vector<int64>& outputs) const OVERRIDE { return state_; } 323 const std::vector<int64>& outputs) const OVERRIDE { return state_; }
324 virtual bool GetResolutionForDisplayId( 324 virtual bool GetResolutionForDisplayId(int64 display_id,
325 int64 display_id, 325 int* width,
326 int *width, 326 int* height,
327 int *height) const OVERRIDE { 327 float* refresh_rate) const OVERRIDE {
328 return false; 328 return false;
329 } 329 }
330 330
331 private: 331 private:
332 OutputState state_; 332 OutputState state_;
333 333
334 DISALLOW_COPY_AND_ASSIGN(TestStateController); 334 DISALLOW_COPY_AND_ASSIGN(TestStateController);
335 }; 335 };
336 336
337 class TestMirroringController 337 class TestMirroringController
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 GetCrtcAction(outputs_[1].crtc, 0, 1439 GetCrtcAction(outputs_[1].crtc, 0,
1440 outputs_[1].mode_infos[kFirstMode].height + 1440 outputs_[1].mode_infos[kFirstMode].height +
1441 OutputConfigurator::kVerticalGap, kFirstMode + 3, 1441 OutputConfigurator::kVerticalGap, kFirstMode + 3,
1442 outputs_[1].output).c_str(), 1442 outputs_[1].output).c_str(),
1443 kUngrab, kProjectingOn, NULL), 1443 kUngrab, kProjectingOn, NULL),
1444 delegate_->GetActionsAndClear()); 1444 delegate_->GetActionsAndClear());
1445 1445
1446 } 1446 }
1447 1447
1448 } // namespace chromeos 1448 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698