Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
mock_raster_cache.h File Reference
#include <vector>
#include "flutter/flow/layers/layer.h"
#include "flutter/flow/raster_cache.h"
#include "flutter/flow/raster_cache_item.h"
#include "flutter/flow/testing/mock_layer.h"
#include "flutter/testing/mock_canvas.h"
#include "third_party/skia/include/core/SkColorSpace.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/core/SkSize.h"

Go to the source code of this file.

Classes

class  flutter::testing::MockRasterCacheResult
 A RasterCacheResult implementation that represents a cached Layer or DisplayList without the overhead of storage. More...
 
class  flutter::testing::MockRasterCache
 A RasterCache implementation that simulates the act of rendering a Layer or DisplayList without the overhead of rasterization or pixel storage. This implementation is used only for testing proper usage of the RasterCache in layer unit tests. More...
 
struct  flutter::testing::PrerollContextHolder
 
struct  flutter::testing::PaintContextHolder
 

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Functions

PrerollContextHolder flutter::testing::GetSamplePrerollContextHolder (LayerStateStack &state_stack, RasterCache *raster_cache, FixedRefreshRateStopwatch *raster_time, FixedRefreshRateStopwatch *ui_time)
 
PaintContextHolder flutter::testing::GetSamplePaintContextHolder (LayerStateStack &state_stack, RasterCache *raster_cache, FixedRefreshRateStopwatch *raster_time, FixedRefreshRateStopwatch *ui_time)
 
bool flutter::testing::RasterCacheItemPrerollAndTryToRasterCache (DisplayListRasterCacheItem &display_list_item, PrerollContext &context, PaintContext &paint_context, const SkMatrix &matrix)
 
void flutter::testing::RasterCacheItemPreroll (DisplayListRasterCacheItem &display_list_item, PrerollContext &context, const SkMatrix &matrix)
 
bool flutter::testing::RasterCacheItemTryToRasterCache (DisplayListRasterCacheItem &display_list_item, PaintContext &paint_context)
 

Variables

static std::vector< RasterCacheItem * > flutter::testing::raster_cache_items_