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 #include "cc/surfaces/surface_factory.h" | 5 #include "cc/surfaces/surface_factory.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
8 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
9 #include "cc/output/copy_output_request.h" | 11 #include "cc/output/copy_output_request.h" |
10 #include "cc/surfaces/surface.h" | 12 #include "cc/surfaces/surface.h" |
11 #include "cc/surfaces/surface_factory_client.h" | 13 #include "cc/surfaces/surface_factory_client.h" |
12 #include "cc/surfaces/surface_manager.h" | 14 #include "cc/surfaces/surface_manager.h" |
13 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
14 | 16 |
15 namespace cc { | 17 namespace cc { |
16 SurfaceFactory::SurfaceFactory(SurfaceManager* manager, | 18 SurfaceFactory::SurfaceFactory(SurfaceManager* manager, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 98 |
97 void SurfaceFactory::RefResources(const TransferableResourceArray& resources) { | 99 void SurfaceFactory::RefResources(const TransferableResourceArray& resources) { |
98 holder_.RefResources(resources); | 100 holder_.RefResources(resources); |
99 } | 101 } |
100 | 102 |
101 void SurfaceFactory::UnrefResources(const ReturnedResourceArray& resources) { | 103 void SurfaceFactory::UnrefResources(const ReturnedResourceArray& resources) { |
102 holder_.UnrefResources(resources); | 104 holder_.UnrefResources(resources); |
103 } | 105 } |
104 | 106 |
105 } // namespace cc | 107 } // namespace cc |
OLD | NEW |