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

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

Issue 807233002: cc: GPU rasterize tiles synchronously in PrepareToDraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed 2 lines when splitting this from patch 743023002. Created 6 years 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
« no previous file with comments | « cc/resources/gpu_tile_task_worker_pool.cc ('k') | cc/resources/software_rasterizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 class CC_EXPORT Rasterizer {
18 public:
19 enum PrepareTilesMode {
20 RASTERIZE_PRIORITIZED_TILES,
21 PREPARE_PRIORITIZED_TILES,
22 PREPARE_NONE,
23 };
24
25 typedef std::vector<Tile*> TileVector;
26
27 virtual ~Rasterizer() {}
28 virtual enum PrepareTilesMode PrepareTilesMode() = 0;
29 virtual void RasterizeTiles(const TileVector& tiles,
30 ResourcePool* resource_pool,
31 TileManager* tile_manager) = 0;
32
33 protected:
34 Rasterizer() {}
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(Rasterizer);
38 };
39
40 } // namespace cc
41
42 #endif // CC_RESOURCES_RASTERIZER_H_
OLDNEW
« no previous file with comments | « cc/resources/gpu_tile_task_worker_pool.cc ('k') | cc/resources/software_rasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698