forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframe_metadata.h
32 lines (23 loc) · 896 Bytes
/
frame_metadata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_PAINT_FRAME_METADATA_H_
#define CC_PAINT_FRAME_METADATA_H_
#include "base/time/time.h"
#include "cc/paint/paint_export.h"
namespace cc {
// TODO(khushalsagar): Find a better name?
struct CC_PAINT_EXPORT FrameMetadata {
FrameMetadata() {}
FrameMetadata(bool complete, base::TimeDelta duration)
: complete(complete), duration(duration) {}
bool operator==(const FrameMetadata& other) const {
return complete == other.complete && duration == other.duration;
}
// True if the decoder has all encoded content for this frame.
bool complete = true;
// The duration for which this frame should be displayed.
base::TimeDelta duration;
};
} // namespace cc
#endif // CC_PAINT_FRAME_METADATA_H_