#include "cc/test/layer_test_common.h"
#include <memory>
#include <utility>
#include <vector>
#include "cc/base/math_util.h"
#include "cc/base/region.h"
#include "cc/test/property_tree_test_utils.h"
#include "cc/trees/draw_property_utils.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/property_tree_builder.h"
#include "components/viz/common/quads/compositor_render_pass.h"
#include "components/viz/common/quads/draw_quad.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace cc {
LayerTreeSettings CommitToActiveTreeLayerListSettings() { … }
LayerTreeSettings CommitToActiveTreeLayerTreeSettings() { … }
LayerTreeSettings CommitToPendingTreeLayerListSettings() { … }
LayerTreeSettings CommitToPendingTreeLayerTreeSettings() { … }
static const char* kQuadString = …;
static bool CanRectFBeSafelyRoundedToRect(const gfx::RectF& r) { … }
void VerifyQuadsExactlyCoverRect(const viz::QuadList& quads,
const gfx::Rect& rect) { … }
void VerifyQuadsAreOccluded(const viz::QuadList& quads,
const gfx::Rect& occluded,
size_t* partially_occluded_count) { … }
void PrepareForUpdateDrawProperties(LayerTreeImpl* layer_tree_impl) { … }
void UpdateDrawProperties(LayerTreeImpl* layer_tree_impl,
LayerImplList* output_update_layer_list) { … }
void UpdateDrawProperties(LayerTreeHost* layer_tree_host,
LayerList* output_update_layer_list) { … }
void SetDeviceScaleAndUpdateViewportRect(LayerTreeImpl* layer_tree_impl,
float device_scale_factor) { … }
void SetDeviceScaleAndUpdateViewportRect(LayerTreeHost* layer_tree_host,
float device_scale_factor) { … }
}