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

Unified Diff: cc/raster/gpu_rasterizer.h

Issue 1876363005: cc: GPU rasterize to an auxiliary surface when using MSAA renderbuffers Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/raster/gpu_rasterizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/gpu_rasterizer.h
diff --git a/cc/raster/gpu_rasterizer.h b/cc/raster/gpu_rasterizer.h
index 592dea773ab3c31d83524f5f0eedc2b503fe8153..59ed651265313524b4a687ea9b2ed141d45606f3 100644
--- a/cc/raster/gpu_rasterizer.h
+++ b/cc/raster/gpu_rasterizer.h
@@ -12,13 +12,14 @@
#include "cc/playback/raster_source.h"
#include "cc/resources/resource_pool.h"
#include "cc/tiles/tile.h"
-#include "third_party/skia/include/core/SkMultiPictureDraw.h"
+#include "third_party/skia/include/core/SkSurface.h"
namespace cc {
class ContextProvider;
class RasterSource;
class ResourceProvider;
+class ScopedGpuRaster;
class CC_EXPORT GpuRasterizer {
public:
@@ -41,14 +42,30 @@ class CC_EXPORT GpuRasterizer {
ResourceProvider* resource_provider,
bool use_distance_filed_text,
int msaa_sample_count);
+ SkSurface* AcquireSurface(const ScopedGpuRaster&,
+ ResourceProvider::ScopedWriteLockGr*,
+ bool use_device_independent_fonts,
+ bool can_use_lcd_text);
+ void ReleaseSurface(const ScopedGpuRaster&,
+ ResourceProvider::ScopedWriteLockGr*);
+ void AllocateMSAASurfaceIfNeeded(const SkImageInfo&,
+ bool use_device_independent_fonts,
+ bool can_use_lcd_text);
ContextProvider* worker_context_provider_;
ResourceProvider* resource_provider_;
- bool use_distance_field_text_;
+ bool use_device_independent_fonts_;
int msaa_sample_count_;
+ sk_sp<SkSurface> msaa_surface_;
+ SkImageInfo msaa_surface_image_info_;
+ bool msaa_surface_use_device_independent_fonts_;
+ bool msaa_surface_can_use_lcd_text_;
+
friend class GpuRasterBufferProvider;
+ friend class GpuTileTaskWorkerPool;
+
DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
};
« no previous file with comments | « no previous file | cc/raster/gpu_rasterizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698