Index: cc/tiles/software_image_decode_controller.h |
diff --git a/cc/tiles/software_image_decode_controller.h b/cc/tiles/software_image_decode_controller.h |
index 700913e9240c21452a957132837728d714e2adbe..893cf3d36ac8ba889bcf26669f022574f6a08fb0 100644 |
--- a/cc/tiles/software_image_decode_controller.h |
+++ b/cc/tiles/software_image_decode_controller.h |
@@ -24,6 +24,7 @@ |
#include "cc/playback/draw_image.h" |
#include "cc/resources/resource_format.h" |
#include "cc/tiles/image_decode_controller.h" |
+#include "components/memory_coordinator/common/memory_coordinator_client.h" |
#include "third_party/skia/include/core/SkRefCnt.h" |
#include "ui/gfx/geometry/rect.h" |
@@ -102,7 +103,8 @@ struct ImageDecodeControllerKeyHash { |
class CC_EXPORT SoftwareImageDecodeController |
: public ImageDecodeController, |
- public base::trace_event::MemoryDumpProvider { |
+ public base::trace_event::MemoryDumpProvider, |
+ public memory_coordinator::MemoryCoordinatorClient { |
public: |
using ImageKey = ImageDecodeControllerKey; |
using ImageKeyHash = ImageDecodeControllerKeyHash; |
@@ -264,6 +266,10 @@ class CC_EXPORT SoftwareImageDecodeController |
const char* cache_name, |
base::trace_event::ProcessMemoryDump* pmd) const; |
+ // Overriden from memory_coordinator::MemoryCoordinatorClient. |
+ void OnMemoryStateChange( |
+ memory_coordinator::mojom::MemoryState state) override; |
+ |
std::unordered_map<ImageKey, scoped_refptr<TileTask>, ImageKeyHash> |
pending_image_tasks_; |