OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DELEGATED_FRAME_PROVIDER_H_ | 5 #ifndef CC_LAYERS_DELEGATED_FRAME_PROVIDER_H_ |
6 #define CC_LAYERS_DELEGATED_FRAME_PROVIDER_H_ | 6 #define CC_LAYERS_DELEGATED_FRAME_PROVIDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
13 #include "cc/resources/return_callback.h" | 13 #include "cc/resources/return_callback.h" |
14 #include "cc/resources/returned_resource.h" | 14 #include "cc/resources/returned_resource.h" |
15 #include "ui/gfx/rect_f.h" | 15 #include "ui/gfx/geometry/rect_f.h" |
16 #include "ui/gfx/size.h" | 16 #include "ui/gfx/geometry/size.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 class DelegatedFrameData; | 19 class DelegatedFrameData; |
20 class DelegatedFrameResourceCollection; | 20 class DelegatedFrameResourceCollection; |
21 class DelegatedRendererLayer; | 21 class DelegatedRendererLayer; |
22 | 22 |
23 // Only one observing layer has ownership of the DelegatedFrameProvider. Only | 23 // Only one observing layer has ownership of the DelegatedFrameProvider. Only |
24 // the active observer should call GetFrameDataAndRefResources(). All frames | 24 // the active observer should call GetFrameDataAndRefResources(). All frames |
25 // provided by a single DelegatedFrameProvider must have the same size. A new | 25 // provided by a single DelegatedFrameProvider must have the same size. A new |
26 // provider must be used for frames of a different size. | 26 // provider must be used for frames of a different size. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 std::vector<Observer> observers_; | 66 std::vector<Observer> observers_; |
67 | 67 |
68 gfx::Size frame_size_; | 68 gfx::Size frame_size_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameProvider); | 70 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameProvider); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace cc | 73 } // namespace cc |
74 | 74 |
75 #endif // CC_LAYERS_DELEGATED_FRAME_PROVIDER_H_ | 75 #endif // CC_LAYERS_DELEGATED_FRAME_PROVIDER_H_ |
OLD | NEW |