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

Unified Diff: cc/tiles/gpu_image_decode_controller.h

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)
Patch Set: Patch for landing Created 4 years, 3 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/resources/resource_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_controller.h
diff --git a/cc/tiles/gpu_image_decode_controller.h b/cc/tiles/gpu_image_decode_controller.h
index 345de1143573507e09cb430a4a89f854a039099c..bb24d76db3854187c90989ec23534d2ed38f6f3d 100644
--- a/cc/tiles/gpu_image_decode_controller.h
+++ b/cc/tiles/gpu_image_decode_controller.h
@@ -11,6 +11,7 @@
#include "base/containers/mru_cache.h"
#include "base/memory/discardable_memory.h"
+#include "base/memory/memory_coordinator_client.h"
#include "base/synchronization/lock.h"
#include "base/trace_event/memory_dump_provider.h"
#include "cc/base/cc_export.h"
@@ -97,7 +98,8 @@ class ContextProvider;
//
class CC_EXPORT GpuImageDecodeController
: public ImageDecodeController,
- public base::trace_event::MemoryDumpProvider {
+ public base::trace_event::MemoryDumpProvider,
+ public base::MemoryCoordinatorClient {
public:
explicit GpuImageDecodeController(ContextProvider* context,
ResourceFormat decode_format,
@@ -301,6 +303,9 @@ class CC_EXPORT GpuImageDecodeController
ImageData* image_data);
void DeletePendingImages();
+ // Overriden from base::MemoryCoordinatorClient.
+ void OnMemoryStateChange(base::MemoryState state) override;
+
const ResourceFormat format_;
ContextProvider* context_;
sk_sp<GrContextThreadSafeProxy> context_threadsafe_proxy_;
« no previous file with comments | « cc/resources/resource_pool.cc ('k') | cc/tiles/gpu_image_decode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698