blob: c4b646fdd57711d7556126969e3fc41ae7c79001 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_TEST_FAKE_MASK_LAYER_IMPL_H_
#define CC_TEST_FAKE_MASK_LAYER_IMPL_H_
#include "cc/layers/picture_layer_impl.h"
#include "cc/raster/raster_source.h"
namespace cc {
class FakeMaskLayerImpl : public PictureLayerImpl {
public:
static std::unique_ptr<FakeMaskLayerImpl> Create(
LayerTreeImpl* tree_impl,
int id,
scoped_refptr<RasterSource> raster_source,
Layer::LayerMaskType mask_type);
void GetContentsResourceId(ResourceId* resource_id,
gfx::Size* resource_size) const override;
private:
FakeMaskLayerImpl(LayerTreeImpl* tree_impl,
int id,
scoped_refptr<RasterSource> raster_source,
Layer::LayerMaskType mask_type);
};
} // namespace cc
#endif // CC_TEST_FAKE_MASK_LAYER_IMPL_H_