blob: 55f25d1337efe30f316c1d19c6db05648d343e76 [file] [log] [blame]
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
#include "modules/desktop_capture/desktop_geometry.h"
namespace webrtc {
class ResolutionTracker final {
// Sets the resolution to |size|. Returns true if a previous size was recorded
// and differs from |size|.
bool SetResolution(DesktopSize size);
// Resets to the initial state.
void Reset();
DesktopSize last_size_;
bool initialized_ = false;
} // namespace webrtc