Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: cc/resources/rasterizer.h

Issue 1063493002: cc: Remove all traces of synchronous GPU rasterization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more deleted code Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CC_RESOURCES_RASTERIZER_H_
6 #define CC_RESOURCES_RASTERIZER_H_
7
8 #include <vector>
9
10 #include "cc/base/cc_export.h"
11 #include "cc/resources/resource_pool.h"
12 #include "cc/resources/tile.h"
13
14 namespace cc {
15 class TileManager;
16
17 enum class PrepareTilesMode {
18 RASTERIZE_PRIORITIZED_TILES,
19 PREPARE_NONE
20 };
21
22 class CC_EXPORT Rasterizer {
23 public:
24 using TileVector = std::vector<Tile*>;
25 using UpdateTileDrawInfoCallback =
26 base::Callback<void(Tile*,
27 scoped_ptr<ScopedResource>,
28 const RasterSource::SolidColorAnalysis&)>;
29
30 virtual ~Rasterizer() {}
31 virtual PrepareTilesMode GetPrepareTilesMode() = 0;
32 virtual void RasterizeTiles(
33 const TileVector& tiles,
34 ResourcePool* resource_pool,
35 ResourceFormat resource_format,
36 const UpdateTileDrawInfoCallback& update_tile_draw_info) = 0;
37
38 protected:
39 Rasterizer() {}
40
41 private:
42 DISALLOW_COPY_AND_ASSIGN(Rasterizer);
43 };
44
45 } // namespace cc
46
47 #endif // CC_RESOURCES_RASTERIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698