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

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

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
« no previous file with comments | « athena/wm/overview_toolbar.cc ('k') | chrome/browser/chromeos/display/overscan_calibrator.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 (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 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_
6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_ 6 #define CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/compositor/layer_delegate.h" 10 #include "ui/compositor/layer_delegate.h"
(...skipping 24 matching lines...) Expand all
35 void Reset(); 35 void Reset();
36 36
37 // Updates the insets and redraw the visual feedback. 37 // Updates the insets and redraw the visual feedback.
38 void UpdateInsets(const gfx::Insets& insets); 38 void UpdateInsets(const gfx::Insets& insets);
39 39
40 const gfx::Insets& insets() const { return insets_; } 40 const gfx::Insets& insets() const { return insets_; }
41 41
42 private: 42 private:
43 // ui::LayerDelegate overrides: 43 // ui::LayerDelegate overrides:
44 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 44 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
45 virtual void OnDelegatedFrameDamage(
46 const gfx::Rect& damage_rect_in_dip) OVERRIDE;
45 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 47 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
46 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE; 48 virtual base::Closure PrepareForLayerBoundsChange() OVERRIDE;
47 49
48 // The target display. 50 // The target display.
49 const gfx::Display display_; 51 const gfx::Display display_;
50 52
51 // The current insets. 53 // The current insets.
52 gfx::Insets insets_; 54 gfx::Insets insets_;
53 55
54 // The insets initially given. Stored so we can undo the insets later. 56 // The insets initially given. Stored so we can undo the insets later.
55 gfx::Insets initial_insets_; 57 gfx::Insets initial_insets_;
56 58
57 // Whether the current insets are committed to the system or not. 59 // Whether the current insets are committed to the system or not.
58 bool committed_; 60 bool committed_;
59 61
60 // The visualization layer for the current calibration region. 62 // The visualization layer for the current calibration region.
61 scoped_ptr<ui::Layer> calibration_layer_; 63 scoped_ptr<ui::Layer> calibration_layer_;
62 64
63 DISALLOW_COPY_AND_ASSIGN(OverscanCalibrator); 65 DISALLOW_COPY_AND_ASSIGN(OverscanCalibrator);
64 }; 66 };
65 67
66 } // namespace chromeos 68 } // namespace chromeos
67 69
68 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_ 70 #endif // CHROME_BROWSER_CHROMEOS_DISPLAY_OVERSCAN_CALIBRATOR_H_
OLDNEW
« no previous file with comments | « athena/wm/overview_toolbar.cc ('k') | chrome/browser/chromeos/display/overscan_calibrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698