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_RASTER_GPU_RASTERIZER_H_
6 #define CC_RASTER_GPU_RASTERIZER_H_
10 #include "cc/base/cc_export.h"
11 #include "cc/resources/resource_pool.h"
12 #include "cc/tiles/tile.h"
13 #include "third_party/skia/include/core/SkMultiPictureDraw.h"
17 class ContextProvider
;
18 class ResourceProvider
;
21 class CC_EXPORT GpuRasterizer
{
25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr
* write_lock
,
26 const RasterSource
* raster_source
,
27 const gfx::Rect
& raster_full_rect
,
28 const gfx::Rect
& playback_rect
,
31 ResourceProvider
* resource_provider() { return resource_provider_
; }
34 GpuRasterizer(ContextProvider
* context_provider
,
35 ResourceProvider
* resource_provider
,
36 bool use_distance_filed_text
,
37 int msaa_sample_count
);
39 ResourceProvider
* resource_provider_
;
41 bool use_distance_field_text_
;
42 int msaa_sample_count_
;
44 friend class GpuTileTaskWorkerPool
;
45 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer
);
50 #endif // CC_RASTER_GPU_RASTERIZER_H_