OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CC_LAYERS_SURFACE_LAYER_H_ | 5 #ifndef CC_LAYERS_SURFACE_LAYER_H_ |
6 #define CC_LAYERS_SURFACE_LAYER_H_ | 6 #define CC_LAYERS_SURFACE_LAYER_H_ |
7 | 7 |
8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
10 #include "cc/surfaces/surface_id.h" | 10 #include "cc/surfaces/surface_id.h" |
11 #include "cc/surfaces/surface_sequence.h" | 11 #include "cc/surfaces/surface_sequence.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/geometry/size.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 // A layer that renders a surface referencing the output of another compositor | 16 // A layer that renders a surface referencing the output of another compositor |
17 // instance or client. | 17 // instance or client. |
18 class CC_EXPORT SurfaceLayer : public Layer { | 18 class CC_EXPORT SurfaceLayer : public Layer { |
19 public: | 19 public: |
20 // This callback is run when a SurfaceSequence needs to be satisfied, but | 20 // This callback is run when a SurfaceSequence needs to be satisfied, but |
21 // the parent compositor is unable to. It can be called on either the main | 21 // the parent compositor is unable to. It can be called on either the main |
22 // or impl threads. | 22 // or impl threads. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 SurfaceSequence destroy_sequence_; | 57 SurfaceSequence destroy_sequence_; |
58 SatisfyCallback satisfy_callback_; | 58 SatisfyCallback satisfy_callback_; |
59 RequireCallback require_callback_; | 59 RequireCallback require_callback_; |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer); | 61 DISALLOW_COPY_AND_ASSIGN(SurfaceLayer); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace cc | 64 } // namespace cc |
65 | 65 |
66 #endif // CC_LAYERS_SURFACE_LAYER_H_ | 66 #endif // CC_LAYERS_SURFACE_LAYER_H_ |
OLD | NEW |