Don't add extra app list launcher page webviews.
[chromium-blink-merge.git] / cc / resources / gpu_rasterizer.h
blob69a200f5ad17cdd332700a3a7a75ed4ad55be27f
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_
8 #include <vector>
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"
15 namespace cc {
17 class ContextProvider;
18 class ResourceProvider;
20 class CC_EXPORT GpuRasterizer {
21 public:
22 ~GpuRasterizer();
24 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock,
25 const RasterSource* raster_source,
26 const gfx::Rect& rect,
27 float scale);
29 ResourceProvider* resource_provider() { return resource_provider_; }
31 private:
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);
46 } // namespace cc
48 #endif // CC_RESOURCES_GPU_RASTERIZER_H_