Exemplo n.º 1
0
void
DrawTargetCaptureImpl::Blur(const AlphaBoxBlur& aBlur)
{
  // gfxAlphaBoxBlur should not use this if it takes the accelerated path.
  MOZ_ASSERT(GetBackendType() == BackendType::SKIA);

  AppendCommand(BlurCommand)(aBlur);
}
Exemplo n.º 2
0
void
LayerManager::Mutated(Layer* aLayer)
{
  NS_ABORT_IF_FALSE(!aLayer->GetTileSourceRect() ||
                    (LAYERS_BASIC == GetBackendType() &&
                     Layer::TYPE_IMAGE == aLayer->GetType()),
                    "Tiling not supported for this manager/layer type");
}
TileGroup *TileGroupFactory::GetTileGroup(
    oid_t database_id, oid_t table_id, oid_t tile_group_id,
    AbstractTable *table, const std::vector<catalog::Schema> &schemas,
    const column_map_type &column_map, int tuple_count) {

  // Allocate the data on appropriate backend
  BackendType backend_type = GetBackendType(peloton_logging_mode);

  TileGroupHeader *tile_header = new TileGroupHeader(backend_type, tuple_count);
  TileGroup *tile_group = new TileGroup(backend_type, tile_header, table,
                                        schemas, column_map, tuple_count);

  tile_header->SetTileGroup(tile_group);

  tile_group->database_id = database_id;
  tile_group->tile_group_id = tile_group_id;
  tile_group->table_id = table_id;

  return tile_group;
}
Exemplo n.º 4
0
already_AddRefed<DrawTarget>
DrawTargetCaptureImpl::CreateSimilarDrawTarget(const IntSize &aSize, SurfaceFormat aFormat) const
{
  return MakeAndAddRef<DrawTargetCaptureImpl>(GetBackendType(), aSize, aFormat);
}