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

Unified Diff: cc/resources/resource_provider.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 | « cc/raster/gpu_rasterizer.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 8a09f1c6b03939734c4238fc9a456aa6d97bbd0f..aff7565a2854fe4ef320f525dd0850301bbe86ef 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -370,6 +370,7 @@ class CC_EXPORT ResourceProvider
SkSurface* sk_surface() { return sk_surface_.get(); }
gfx::Size GetResourceSize() const { return resource_->size; }
+ ResourceFormat GetResourceFormat() const { return resource_->format; }
void UpdateResourceSyncToken(const gpu::SyncToken& sync_token) {
set_sync_token_ = true;
@@ -686,7 +687,7 @@ class CC_EXPORT ResourceProvider
// A process-unique ID used for disambiguating memory dumps from different
// resource providers.
int tracing_id_;
-
+ friend class GpuRasterizer;
DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
};
« no previous file with comments | « cc/raster/gpu_rasterizer.cc ('k') | gpu/command_buffer/common/capabilities.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698