Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1908)

Side by Side Diff: cc/raster/gpu_raster_buffer_provider.h

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/raster/bitmap_tile_task_worker_pool.cc ('k') | cc/raster/gpu_raster_buffer_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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.
4
5 #ifndef CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "cc/raster/raster_buffer_provider.h"
12
13 namespace cc {
14 class ContextProvider;
15 class GpuRasterizer;
16 class ResourceProvider;
17
18 class CC_EXPORT GpuRasterBufferProvider : public RasterBufferProvider {
19 public:
20 ~GpuRasterBufferProvider() override;
21
22 static std::unique_ptr<RasterBufferProvider> Create(
23 ContextProvider* context_provider,
24 ResourceProvider* resource_provider,
25 bool use_distance_field_text,
26 int gpu_rasterization_msaa_sample_count);
27
28 // Overridden from RasterBufferProvider:
29 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
30 const Resource* resource,
31 uint64_t resource_content_id,
32 uint64_t previous_content_id) override;
33 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
34 void OrderingBarrier() override;
35 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
36 bool GetResourceRequiresSwizzle(bool must_support_alpha) const override;
37 void Shutdown() override;
38
39 private:
40 GpuRasterBufferProvider(ContextProvider* context_provider,
41 ResourceProvider* resource_provider,
42 bool use_distance_field_text,
43 int gpu_rasterization_msaa_sample_count);
44
45 std::unique_ptr<GpuRasterizer> rasterizer_;
46
47 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider);
48 };
49
50 } // namespace cc
51
52 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/bitmap_tile_task_worker_pool.cc ('k') | cc/raster/gpu_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698