Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / cc / raster / gpu_rasterizer.h
blob443e6efeb85974fbb66ac02b716061774a6848fc
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_
8 #include <vector>
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"
15 namespace cc {
17 class ContextProvider;
18 class ResourceProvider;
19 class RasterSource;
21 class CC_EXPORT GpuRasterizer {
22 public:
23 ~GpuRasterizer();
25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock,
26 const RasterSource* raster_source,
27 const gfx::Rect& rect,
28 float scale);
30 ResourceProvider* resource_provider() { return resource_provider_; }
32 private:
33 GpuRasterizer(ContextProvider* context_provider,
34 ResourceProvider* resource_provider,
35 bool use_distance_filed_text,
36 int msaa_sample_count);
38 ResourceProvider* resource_provider_;
40 bool use_distance_field_text_;
41 int msaa_sample_count_;
43 friend class GpuTileTaskWorkerPool;
44 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
47 } // namespace cc
49 #endif // CC_RASTER_GPU_RASTERIZER_H_