| 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" |
| 11 #include "cc/resources/resource_pool.h" | 11 #include "cc/resources/resource_pool.h" |
| 12 #include "cc/resources/tile.h" | 12 #include "cc/resources/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 ResourceProvider; | 18 class ResourceProvider; |
| 19 class RasterSource; |
| 19 | 20 |
| 20 class CC_EXPORT GpuRasterizer { | 21 class CC_EXPORT GpuRasterizer { |
| 21 public: | 22 public: |
| 22 ~GpuRasterizer(); | 23 ~GpuRasterizer(); |
| 23 | 24 |
| 24 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, | 25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, |
| 25 const RasterSource* raster_source, | 26 const RasterSource* raster_source, |
| 26 const gfx::Rect& rect, | 27 const gfx::Rect& rect, |
| 27 float scale); | 28 float scale); |
| 28 | 29 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 bool use_distance_field_text_; | 40 bool use_distance_field_text_; |
| 40 int msaa_sample_count_; | 41 int msaa_sample_count_; |
| 41 | 42 |
| 42 friend class GpuTileTaskWorkerPool; | 43 friend class GpuTileTaskWorkerPool; |
| 43 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); | 44 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); |
| 44 }; | 45 }; |
| 45 | 46 |
| 46 } // namespace cc | 47 } // namespace cc |
| 47 | 48 |
| 48 #endif // CC_RESOURCES_GPU_RASTERIZER_H_ | 49 #endif // CC_RESOURCES_GPU_RASTERIZER_H_ |
| OLD | NEW |