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

Unified Diff: cc/resources/resource_provider.h

Issue 1653983002: cc: Avoid extra flush calls to Skia GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the filter hunk Created 4 years, 10 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/scoped_gpu_raster.cc ('k') | cc/resources/resource_provider.cc » ('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 28b5682a7610872777086567c54c931696d24a1f..432245daa6e8cc3b2ed20726f096739068511731 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -42,6 +42,7 @@
#include "ui/gfx/gpu_memory_buffer.h"
class GrContext;
+class GrSurface;
namespace gpu {
class GpuMemoryBufferManager;
@@ -351,6 +352,7 @@ class CC_EXPORT ResourceProvider
ResourceProvider::Resource* resource_;
base::ThreadChecker thread_checker_;
skia::RefPtr<SkSurface> sk_surface_;
+ skia::RefPtr<GrSurface> gr_surface_;
DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr);
};
« no previous file with comments | « cc/raster/scoped_gpu_raster.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698