5#ifndef FLUTTER_FLOW_PAINT_REGION_H_
6#define FLUTTER_FLOW_PAINT_REGION_H_
10#include "flutter/fml/logging.h"
34 : rects_(
std::move(rects)),
40 std::vector<SkRect>::const_iterator
begin()
const {
42 return rects_->begin() + from_;
45 std::vector<SkRect>::const_iterator
end()
const {
47 return rects_->begin() + to_;
53 bool is_valid()
const {
return rects_ !=
nullptr; }
64 std::shared_ptr<std::vector<SkRect>> rects_;
67 bool has_readback_ =
false;
68 bool has_texture_ =
false;
std::vector< SkRect >::const_iterator begin() const
PaintRegion(std::shared_ptr< std::vector< SkRect > > rects, size_t from, size_t to, bool has_readback, bool has_texture)
bool has_readback() const
std::vector< SkRect >::const_iterator end() const
SkRect ComputeBounds() const
#define FML_DCHECK(condition)