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

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

Issue 733773005: cc: GPU rasterize tiles synchronously in PrepareToDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/debug/frame_viewer_instrumentation.cc ('k') | cc/resources/gpu_rasterizer.cc » ('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_GPU_RASTERIZER_H_
6 #define CC_RESOURCES_GPU_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 #include "third_party/skia/include/core/SkMultiPictureDraw.h"
14
15 namespace cc {
16 class ContextProvider;
17 class ResourceProvider;
18 class TileManager;
19
20 class CC_EXPORT GpuRasterizer {
21 public:
22 typedef std::vector<Tile*> TileVector;
23
24 ~GpuRasterizer();
25
26 static scoped_ptr<GpuRasterizer> Create(ContextProvider* context_provider,
27 ResourceProvider* resource_provider,
28 bool use_distance_field_text);
29
30 void RasterizeTiles(const TileVector& tiles,
31 ResourcePool* resource_pool,
32 TileManager* tile_manager);
33 void Analyze(const Tile* tile, RasterSource::SolidColorAnalysis* analysis);
34 void Raster(const Tile* tile, const ScopedResource* resource);
35
36 private:
37 GpuRasterizer(ContextProvider* context_provider,
38 ResourceProvider* resource_provider,
39 bool use_distance_filed_text);
40
41 ContextProvider* context_provider_;
42 ResourceProvider* resource_provider_;
43 SkMultiPictureDraw multi_picture_draw_;
44
45 bool use_distance_field_text_;
46
47 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
48 };
49
50 } // namespace cc
51
52 #endif // CC_RESOURCES_GPU_RASTERIZER_H_
OLDNEW
« no previous file with comments | « cc/debug/frame_viewer_instrumentation.cc ('k') | cc/resources/gpu_rasterizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698