Skip to content

Commit 147e64f

Browse files
chinmaygardednfield
authored andcommitted
Update translation units for style guide.
1 parent 98c18b3 commit 147e64f

16 files changed

+450
-417
lines changed

impeller/archivist/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ impeller_component("archivist") {
1111
public = [ "archive.h" ]
1212

1313
sources = [
14+
"archivable.cc",
15+
"archivable.h",
1416
"archive.cc",
17+
"archive.h",
1518
"archive_class_registration.cc",
1619
"archive_class_registration.h",
1720
"archive_database.cc",

impeller/archivist/archivable.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright 2013 The Flutter 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 "impeller/archivist/archivable.h"
6+
7+
namespace impeller {
8+
9+
//
10+
11+
} // namespace impeller

impeller/archivist/archivable.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright 2013 The Flutter 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+
#pragma once
6+
7+
#include <cstdint>
8+
9+
namespace impeller {
10+
11+
class ArchiveLocation;
12+
13+
//------------------------------------------------------------------------------
14+
/// @brief Instances of `Archivable`s can be read from and written to a
15+
/// persistent archive.
16+
///
17+
class Archivable {
18+
public:
19+
using ArchiveName = uint64_t;
20+
21+
virtual ArchiveName GetArchiveName() const = 0;
22+
23+
virtual bool Write(ArchiveLocation& item) const = 0;
24+
25+
virtual bool Read(ArchiveLocation& item) = 0;
26+
};
27+
28+
} // namespace impeller

0 commit comments

Comments
 (0)