Add test for clicking bookmark star in presence of ctrl-D keybinding
[chromium-blink-merge.git] / cc / resources / rasterizer.h
blob803aefaf418356c039977aeb6f60c47eac17c30f
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_RESOURCES_RASTERIZER_H_
6 #define CC_RESOURCES_RASTERIZER_H_
8 #include <vector>
10 #include "cc/base/cc_export.h"
11 #include "cc/resources/resource_pool.h"
12 #include "cc/resources/tile.h"
14 namespace cc {
15 class TileManager;
17 enum class PrepareTilesMode {
18 RASTERIZE_PRIORITIZED_TILES,
19 PREPARE_PRIORITIZED_TILES,
20 PREPARE_NONE
23 class CC_EXPORT Rasterizer {
24 public:
25 using TileVector = std::vector<Tile*>;
26 using UpdateTileDrawInfoCallback =
27 base::Callback<void(Tile*,
28 scoped_ptr<ScopedResource>,
29 const RasterSource::SolidColorAnalysis&)>;
31 virtual ~Rasterizer() {}
32 virtual PrepareTilesMode GetPrepareTilesMode() = 0;
33 virtual void RasterizeTiles(
34 const TileVector& tiles,
35 ResourcePool* resource_pool,
36 const UpdateTileDrawInfoCallback& update_tile_draw_info) = 0;
38 protected:
39 Rasterizer() {}
41 private:
42 DISALLOW_COPY_AND_ASSIGN(Rasterizer);
45 } // namespace cc
47 #endif // CC_RESOURCES_RASTERIZER_H_