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_RESOURCES_GPU_RASTERIZER_H_ | 5 #ifndef CC_RESOURCES_GPU_RASTERIZER_H_ |
6 #define CC_RESOURCES_GPU_RASTERIZER_H_ | 6 #define CC_RESOURCES_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" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ~GpuRasterizer() override; | 23 ~GpuRasterizer() override; |
24 | 24 |
25 static scoped_ptr<GpuRasterizer> Create(ContextProvider* context_provider, | 25 static scoped_ptr<GpuRasterizer> Create(ContextProvider* context_provider, |
26 ResourceProvider* resource_provider, | 26 ResourceProvider* resource_provider, |
27 bool use_distance_field_text, | 27 bool use_distance_field_text, |
28 bool tile_prepare_enabled); | 28 bool tile_prepare_enabled); |
29 PrepareTilesMode GetPrepareTilesMode() override; | 29 PrepareTilesMode GetPrepareTilesMode() override; |
30 void RasterizeTiles( | 30 void RasterizeTiles( |
31 const TileVector& tiles, | 31 const TileVector& tiles, |
32 ResourcePool* resource_pool, | 32 ResourcePool* resource_pool, |
| 33 ResourceFormat resource_format, |
33 const UpdateTileDrawInfoCallback& update_tile_draw_info) override; | 34 const UpdateTileDrawInfoCallback& update_tile_draw_info) override; |
34 | 35 |
35 private: | 36 private: |
36 GpuRasterizer(ContextProvider* context_provider, | 37 GpuRasterizer(ContextProvider* context_provider, |
37 ResourceProvider* resource_provider, | 38 ResourceProvider* resource_provider, |
38 bool use_distance_filed_text, | 39 bool use_distance_filed_text, |
39 bool tile_prepare_enabled); | 40 bool tile_prepare_enabled); |
40 | 41 |
41 using ScopedResourceWriteLocks = | 42 using ScopedResourceWriteLocks = |
42 ScopedPtrVector<ResourceProvider::ScopedWriteLockGr>; | 43 ScopedPtrVector<ResourceProvider::ScopedWriteLockGr>; |
(...skipping 10 matching lines...) Expand all Loading... |
53 | 54 |
54 bool use_distance_field_text_; | 55 bool use_distance_field_text_; |
55 bool tile_prepare_enabled_; | 56 bool tile_prepare_enabled_; |
56 | 57 |
57 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); | 58 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace cc | 61 } // namespace cc |
61 | 62 |
62 #endif // CC_RESOURCES_GPU_RASTERIZER_H_ | 63 #endif // CC_RESOURCES_GPU_RASTERIZER_H_ |
OLD | NEW |