#include "cc/layers/painted_scrollbar_layer.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "base/auto_reset.h"
#include "cc/layers/painted_scrollbar_layer_impl.h"
#include "cc/paint/skia_paint_canvas.h"
#include "cc/trees/draw_property_utils.h"
#include "cc/trees/layer_tree_host.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/geometry/transform_util.h"
namespace cc {
std::unique_ptr<LayerImpl> PaintedScrollbarLayer::CreateLayerImpl(
LayerTreeImpl* tree_impl) const { … }
scoped_refptr<PaintedScrollbarLayer> PaintedScrollbarLayer::CreateOrReuse(
scoped_refptr<Scrollbar> scrollbar,
PaintedScrollbarLayer* existing_layer) { … }
scoped_refptr<PaintedScrollbarLayer> PaintedScrollbarLayer::Create(
scoped_refptr<Scrollbar> scrollbar) { … }
PaintedScrollbarLayer::PaintedScrollbarLayer(scoped_refptr<Scrollbar> scrollbar)
: … { … }
PaintedScrollbarLayer::~PaintedScrollbarLayer() = default;
bool PaintedScrollbarLayer::OpacityCanAnimateOnImplThread() const { … }
void PaintedScrollbarLayer::PushPropertiesTo(
LayerImpl* layer,
const CommitState& commit_state,
const ThreadUnsafeCommitState& unsafe_state) { … }
void PaintedScrollbarLayer::SetLayerTreeHost(LayerTreeHost* host) { … }
gfx::Size PaintedScrollbarLayer::LayerSizeToContentSize(
const gfx::Size& layer_size) const { … }
bool PaintedScrollbarLayer::UpdateGeometry() { … }
bool PaintedScrollbarLayer::UpdateInternalContentScale() { … }
bool PaintedScrollbarLayer::Update() { … }
bool PaintedScrollbarLayer::UpdateTrackAndButtonsIfNeeded() { … }
bool PaintedScrollbarLayer::UpdateThumbIfNeeded() { … }
UIResourceBitmap PaintedScrollbarLayer::RasterizeScrollbarPart(
const gfx::Size& size,
const gfx::Size& requested_content_size,
base::FunctionRef<void(PaintCanvas&)> paint_function) { … }
ScrollbarLayerBase::ScrollbarLayerType
PaintedScrollbarLayer::GetScrollbarLayerType() const { … }
}