Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: cc/surfaces/scoped_surface_sequence.h

Issue 2616403003: Replacing SurfaceReferenceBase and SequenceSurfaceReference with Closures (Closed)
Patch Set: c Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 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 CC_SURFACES_SCOPED_SURFACE_SEQUENCE_H_
6 #define CC_SURFACES_SCOPED_SURFACE_SEQUENCE_H_
7
8 #include "cc/surfaces/scoped_surface_reference_base.h"
9 #include "cc/surfaces/surface_reference_factory.h"
10 #include "cc/surfaces/surface_sequence.h"
11
12 namespace cc {
13
14 // A SurfaceSequence that automatically satisfies itself when it goes out of
15 // scope.
16 class ScopedSurfaceSequence final : public ScopedSurfaceReferenceBase {
17 public:
18 ScopedSurfaceSequence(scoped_refptr<const SurfaceReferenceFactory> factory,
19 const SurfaceSequence& sequence);
20
21 ~ScopedSurfaceSequence() override;
22
23 const SurfaceSequence& sequence() const { return sequence_; }
24
25 private:
26 const SurfaceSequence sequence_;
27
28 DISALLOW_COPY_AND_ASSIGN(ScopedSurfaceSequence);
29 };
30
31 } // namespace cc
32
33 #endif // CC_SURFACES_SCOPED_SURFACE_SEQUENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698