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
3 // found in the LICENSE file.
5 #ifndef CC_RESOURCES_GPU_RASTERIZER_H_
6 #define CC_RESOURCES_GPU_RASTERIZER_H_
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"
17 class ContextProvider
;
18 class ResourceProvider
;
20 class CC_EXPORT GpuRasterizer
{
24 void RasterizeSource(ResourceProvider::ScopedWriteLockGr
* write_lock
,
25 const RasterSource
* raster_source
,
26 const gfx::Rect
& rect
,
29 ResourceProvider
* resource_provider() { return resource_provider_
; }
32 GpuRasterizer(ContextProvider
* context_provider
,
33 ResourceProvider
* resource_provider
,
34 bool use_distance_filed_text
,
35 int msaa_sample_count
);
37 ResourceProvider
* resource_provider_
;
39 bool use_distance_field_text_
;
40 int msaa_sample_count_
;
42 friend class GpuTileTaskWorkerPool
;
43 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer
);
48 #endif // CC_RESOURCES_GPU_RASTERIZER_H_