OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_RASTER_GPU_RASTERIZER_H_ | 5 #ifndef CC_RASTER_GPU_RASTERIZER_H_ |
6 #define CC_RASTER_GPU_RASTERIZER_H_ | 6 #define CC_RASTER_GPU_RASTERIZER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
11 #include "cc/resources/resource_pool.h" | 11 #include "cc/resources/resource_pool.h" |
12 #include "cc/tiles/tile.h" | 12 #include "cc/tiles/tile.h" |
13 #include "third_party/skia/include/core/SkMultiPictureDraw.h" | 13 #include "third_party/skia/include/core/SkMultiPictureDraw.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class ContextProvider; | 17 class ContextProvider; |
| 18 class DisplayListRasterSource; |
18 class ResourceProvider; | 19 class ResourceProvider; |
19 class RasterSource; | |
20 | 20 |
21 class CC_EXPORT GpuRasterizer { | 21 class CC_EXPORT GpuRasterizer { |
22 public: | 22 public: |
23 ~GpuRasterizer(); | 23 ~GpuRasterizer(); |
24 | 24 |
25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, | 25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, |
26 const RasterSource* raster_source, | 26 const DisplayListRasterSource* raster_source, |
27 const gfx::Rect& raster_full_rect, | 27 const gfx::Rect& raster_full_rect, |
28 const gfx::Rect& playback_rect, | 28 const gfx::Rect& playback_rect, |
29 float scale); | 29 float scale); |
30 | 30 |
31 ResourceProvider* resource_provider() { return resource_provider_; } | 31 ResourceProvider* resource_provider() { return resource_provider_; } |
32 | 32 |
33 private: | 33 private: |
34 GpuRasterizer(ContextProvider* context_provider, | 34 GpuRasterizer(ContextProvider* context_provider, |
35 ResourceProvider* resource_provider, | 35 ResourceProvider* resource_provider, |
36 bool use_distance_filed_text, | 36 bool use_distance_filed_text, |
37 int msaa_sample_count); | 37 int msaa_sample_count); |
38 | 38 |
39 ResourceProvider* resource_provider_; | 39 ResourceProvider* resource_provider_; |
40 | 40 |
41 bool use_distance_field_text_; | 41 bool use_distance_field_text_; |
42 int msaa_sample_count_; | 42 int msaa_sample_count_; |
43 | 43 |
44 friend class GpuTileTaskWorkerPool; | 44 friend class GpuTileTaskWorkerPool; |
45 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); | 45 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); |
46 }; | 46 }; |
47 | 47 |
48 } // namespace cc | 48 } // namespace cc |
49 | 49 |
50 #endif // CC_RASTER_GPU_RASTERIZER_H_ | 50 #endif // CC_RASTER_GPU_RASTERIZER_H_ |
OLD | NEW |