blob: b92d1190bc141176d7abcb66acdd375794b1c684 [file] [log] [blame]
// Copyright 2019 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.
#include "base/memory/ref_counted.h"
#include "cc/cc_export.h"
#include "cc/paint/element_id.h"
namespace cc {
class Layer;
// Viewport Layers are used to identify key layers to the compositor thread,
// so that it can perform viewport-based scrolling independently, such as
// for pinch-zoom or overscroll elasticity.
struct CC_EXPORT ViewportLayers {
ElementId overscroll_elasticity_element_id;
scoped_refptr<Layer> page_scale;
scoped_refptr<Layer> inner_viewport_container;
scoped_refptr<Layer> outer_viewport_container;
scoped_refptr<Layer> inner_viewport_scroll;
scoped_refptr<Layer> outer_viewport_scroll;
} // namespace cc