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
33
34
35
36
37
38
ash / frame_sink / frame_sink_holder_test_api.cc [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/frame_sink/frame_sink_holder_test_api.h"
#include "ash/frame_sink/frame_sink_holder.h"
#include "ui/gfx/geometry/size.h"
namespace ash {
FrameSinkHolderTestApi::FrameSinkHolderTestApi(
FrameSinkHolder* frame_sink_holder)
: frame_sink_holder_(frame_sink_holder) {}
FrameSinkHolderTestApi::~FrameSinkHolderTestApi() = default;
const gfx::Size& FrameSinkHolderTestApi::LastSubmittedFrameSize() const {
return frame_sink_holder_->last_frame_size_in_pixels_;
}
bool FrameSinkHolderTestApi::IsPendingFrameAck() const {
return frame_sink_holder_->pending_compositor_frame_ack_;
}
bool FrameSinkHolderTestApi::IsPendingFrame() const {
return frame_sink_holder_->pending_compositor_frame_;
}
bool FrameSinkHolderTestApi::IsFirstFrameRequested() const {
return frame_sink_holder_->first_frame_requested_;
}
bool FrameSinkHolderTestApi::IsObservingBeginFrameSource() const {
return frame_sink_holder_->begin_frame_observation_.IsObserving();
}
} // namespace ash