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

Side by Side Diff: chrome/browser/chromeos/display/overscan_calibrator.cc

Issue 464643003: Stop painting when receiving delegated frame (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more compile fixes Created 6 years, 4 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 "chrome/browser/chromeos/display/overscan_calibrator.h" 5 #include "chrome/browser/chromeos/display/overscan_calibrator.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/display/display_info.h" 8 #include "ash/display/display_info.h"
9 #include "ash/display/display_manager.h" 9 #include "ash/display/display_manager.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 gfx::Point center = inner_bounds.CenterPoint(); 126 gfx::Point center = inner_bounds.CenterPoint();
127 int vertical_offset = inner_bounds.height() / 2 - kArrowGapWidth; 127 int vertical_offset = inner_bounds.height() / 2 - kArrowGapWidth;
128 int horizontal_offset = inner_bounds.width() / 2 - kArrowGapWidth; 128 int horizontal_offset = inner_bounds.width() / 2 - kArrowGapWidth;
129 129
130 DrawTriangle(center.x(), center.y() + vertical_offset, 0, canvas); 130 DrawTriangle(center.x(), center.y() + vertical_offset, 0, canvas);
131 DrawTriangle(center.x(), center.y() - vertical_offset, 180, canvas); 131 DrawTriangle(center.x(), center.y() - vertical_offset, 180, canvas);
132 DrawTriangle(center.x() - horizontal_offset, center.y(), 90, canvas); 132 DrawTriangle(center.x() - horizontal_offset, center.y(), 90, canvas);
133 DrawTriangle(center.x() + horizontal_offset, center.y(), -90, canvas); 133 DrawTriangle(center.x() + horizontal_offset, center.y(), -90, canvas);
134 } 134 }
135 135
136 void OverscanCalibrator::OnDelegatedFrameDamage(
137 const gfx::Rect& damage_rect_in_dip) {
138 }
139
136 void OverscanCalibrator::OnDeviceScaleFactorChanged( 140 void OverscanCalibrator::OnDeviceScaleFactorChanged(
137 float device_scale_factor) { 141 float device_scale_factor) {
138 // TODO(mukai): Cancel the overscan calibration when the device 142 // TODO(mukai): Cancel the overscan calibration when the device
139 // configuration has changed. 143 // configuration has changed.
140 } 144 }
141 145
142 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() { 146 base::Closure OverscanCalibrator::PrepareForLayerBoundsChange() {
143 return base::Closure(); 147 return base::Closure();
144 } 148 }
145 149
146 } // namespace chromeos 150 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/display/overscan_calibrator.h ('k') | chrome/browser/chromeos/ui/focus_ring_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698