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

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: Created 4 years, 8 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') | cc/raster/gpu_rasterizer.cc » ('J')
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 d1951436d538e7cee74b6ea8eff3df2b82270e16..57b419da6f17543715801787dbaf22d27442d89a 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:
@@ -38,12 +39,26 @@ class CC_EXPORT GpuRasterizer {
ResourceProvider* resource_provider,
bool use_distance_filed_text,
int msaa_sample_count);
+ SkSurface* AcquireSurface(const ScopedGpuRaster&,
+ ContextProvider*,
+ 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);
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 GpuTileTaskWorkerPool;
DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
};
« no previous file with comments | « no previous file | cc/raster/gpu_rasterizer.cc » ('j') | cc/raster/gpu_rasterizer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698