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

Unified Diff: cc/raster/staging_buffer_pool.h

Issue 2007593005: Remove the concept of OutputSurface from ResourceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourceprovider-no-outputsurface: moreccptcompile 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/raster_buffer_provider_unittest.cc ('k') | cc/raster/staging_buffer_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/staging_buffer_pool.h
diff --git a/cc/raster/staging_buffer_pool.h b/cc/raster/staging_buffer_pool.h
index 14818b4b4262a0ec202dbd8cb274bfca56b6d60a..faa012b2b8029192b97400a1b48ff5491d82d3f9 100644
--- a/cc/raster/staging_buffer_pool.h
+++ b/cc/raster/staging_buffer_pool.h
@@ -54,11 +54,11 @@ class CC_EXPORT StagingBufferPool
public:
~StagingBufferPool() final;
- static std::unique_ptr<StagingBufferPool> Create(
- base::SequencedTaskRunner* task_runner,
- ResourceProvider* resource_provider,
- bool use_partial_raster,
- int max_staging_buffer_usage_in_bytes);
+ StagingBufferPool(base::SequencedTaskRunner* task_runner,
+ ContextProvider* worker_context_provider,
+ ResourceProvider* resource_provider,
+ bool use_partial_raster,
+ int max_staging_buffer_usage_in_bytes);
void Shutdown();
// Overridden from base::trace_event::MemoryDumpProvider:
@@ -71,11 +71,6 @@ class CC_EXPORT StagingBufferPool
void ReleaseStagingBuffer(std::unique_ptr<StagingBuffer> staging_buffer);
private:
- StagingBufferPool(base::SequencedTaskRunner* task_runner,
- ResourceProvider* resource_provider,
- bool use_partial_raster,
- int max_staging_buffer_usage_in_bytes);
-
void AddStagingBuffer(const StagingBuffer* staging_buffer,
ResourceFormat format);
void RemoveStagingBuffer(const StagingBuffer* staging_buffer);
@@ -93,6 +88,7 @@ class CC_EXPORT StagingBufferPool
base::trace_event::TracedValue* staging_state) const;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
+ ContextProvider* const worker_context_provider_;
ResourceProvider* const resource_provider_;
const bool use_partial_raster_;
« no previous file with comments | « cc/raster/raster_buffer_provider_unittest.cc ('k') | cc/raster/staging_buffer_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698