chromium/cc/layers/recording_source.cc

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/layers/recording_source.h"

#include <algorithm>
#include <utility>

#include "base/numerics/safe_math.h"
#include "base/trace_event/trace_event.h"
#include "cc/base/region.h"
#include "cc/layers/content_layer_client.h"
#include "cc/paint/display_item_list.h"
#include "cc/paint/solid_color_analyzer.h"
#include "cc/raster/raster_source.h"

namespace {

// We don't perform per-layer solid color analysis when there are too many skia
// operations.
const int kMaxOpsToAnalyzeForLayer =;

}  // namespace

namespace cc {

RecordingSource::RecordingSource() = default;
RecordingSource::~RecordingSource() = default;

void RecordingSource::UpdateInvalidationForRecordedBounds(
    const gfx::Rect& old_recorded_bounds,
    const gfx::Rect& new_recorded_bounds,
    Region& invalidation) {}

void RecordingSource::FinishDisplayItemListUpdate() {}

void RecordingSource::SetNeedsDisplayRect(const gfx::Rect& layer_rect) {}

bool RecordingSource::Update(const gfx::Size& layer_size,
                             float recording_scale_factor,
                             ContentLayerClient& client,
                             Region& invalidation) {}

void RecordingSource::SetEmptyBounds() {}

void RecordingSource::SetSlowdownRasterScaleFactor(int factor) {}

void RecordingSource::SetBackgroundColor(SkColor4f background_color) {}

void RecordingSource::SetRequiresClear(bool requires_clear) {}

void RecordingSource::SetCanUseRecordedBounds(bool can_use_recorded_bounds) {}

scoped_refptr<RasterSource> RecordingSource::CreateRasterSource() const {}

void RecordingSource::DetermineIfSolidColor() {}

}  // namespace cc