OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 #include "cc/surfaces/scoped_surface_reference.h" |
| 6 |
| 7 namespace cc { |
| 8 |
| 9 ScopedSurfaceReference::ScopedSurfaceReference( |
| 10 scoped_refptr<const SurfaceReferenceFactory> factory, |
| 11 const SurfaceReference& surface_reference) |
| 12 : ScopedSurfaceReferenceBase(factory), |
| 13 surface_reference_(surface_reference) {} |
| 14 |
| 15 ScopedSurfaceReference::~ScopedSurfaceReference() { |
| 16 Destroy(); |
| 17 } |
| 18 |
| 19 } // namespace cc |
OLD | NEW |