OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_ |
| 6 #define UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 namespace ui { |
| 10 |
| 11 class Layer; |
| 12 |
| 13 // Paint listeners can be installed on views to allow other parties to be |
| 14 // notified when compositing completes. |
| 15 class LayerObserver { |
| 16 public: |
| 17 // This is called after every draw. |
| 18 virtual void OnDraw(Layer* view) = 0; |
| 19 |
| 20 protected: |
| 21 virtual ~LayerObserver() {} |
| 22 }; |
| 23 |
| 24 } // namespace ui |
| 25 |
| 26 #endif // UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_ |
OLD | NEW |