1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23

cc / paint / directly_composited_image_info.h [blame]

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

#ifndef CC_PAINT_DIRECTLY_COMPOSITED_IMAGE_INFO_H_
#define CC_PAINT_DIRECTLY_COMPOSITED_IMAGE_INFO_H_

#include "ui/gfx/geometry/vector2d.h"

namespace cc {

// An image is directly composited if it's the only content of a layer.
// It'll be rasterized at the intrinsic size.
struct DirectlyCompositedImageInfo {
  // See PictureLayerImpl::direct_composited_image_default_raster_scale_.
  gfx::Vector2dF default_raster_scale;
  // Whether to use nearest neighbor filtering when scaling the layer.
  bool nearest_neighbor;
};

}  // namespace cc

#endif  // CC_PAINT_DIRECTLY_COMPOSITED_IMAGE_INFO_H_