| Index: cc/resources/rasterizer.h
|
| diff --git a/cc/resources/rasterizer.h b/cc/resources/rasterizer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a4fad9d13dd25d4b536e4cb32631a4d9541276f8
|
| --- /dev/null
|
| +++ b/cc/resources/rasterizer.h
|
| @@ -0,0 +1,42 @@
|
| +// Copyright 2014 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_RESOURCES_RASTERIZER_H_
|
| +#define CC_RESOURCES_RASTERIZER_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "cc/base/cc_export.h"
|
| +#include "cc/resources/resource_pool.h"
|
| +#include "cc/resources/tile.h"
|
| +
|
| +namespace cc {
|
| +class TileManager;
|
| +
|
| +class CC_EXPORT Rasterizer {
|
| + public:
|
| + enum PrepareTilesMode {
|
| + RASTERIZE_PRIORITIZED_TILES,
|
| + PREPARE_PRIORITIZED_TILES,
|
| + PREPARE_NONE,
|
| + };
|
| +
|
| + typedef std::vector<Tile*> TileVector;
|
| +
|
| + virtual ~Rasterizer() {}
|
| + virtual enum PrepareTilesMode PrepareTilesMode() = 0;
|
| + virtual void RasterizeTiles(const TileVector& tiles,
|
| + ResourcePool* resource_pool,
|
| + TileManager* tile_manager) = 0;
|
| +
|
| + protected:
|
| + Rasterizer() {}
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(Rasterizer);
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_RESOURCES_RASTERIZER_H_
|
|
|