| 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..9b5af7058ea14e7ee1c2ddee006910665d734917 100644
|
| --- a/cc/tiles/gpu_image_decode_controller.h
|
| +++ b/cc/tiles/gpu_image_decode_controller.h
|
| @@ -16,6 +16,7 @@
|
| #include "cc/base/cc_export.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"
|
|
|
| class SkImageTextureData;
|
| @@ -97,7 +98,8 @@ class ContextProvider;
|
| //
|
| class CC_EXPORT GpuImageDecodeController
|
| : public ImageDecodeController,
|
| - public base::trace_event::MemoryDumpProvider {
|
| + public base::trace_event::MemoryDumpProvider,
|
| + public memory_coordinator::MemoryCoordinatorClient {
|
| public:
|
| explicit GpuImageDecodeController(ContextProvider* context,
|
| ResourceFormat decode_format,
|
| @@ -301,6 +303,10 @@ class CC_EXPORT GpuImageDecodeController
|
| ImageData* image_data);
|
| void DeletePendingImages();
|
|
|
| + // Overriden from memory_coordinator::MemoryCoordinatorClient.
|
| + void OnMemoryStateChange(
|
| + memory_coordinator::mojom::MemoryState state) override;
|
| +
|
| const ResourceFormat format_;
|
| ContextProvider* context_;
|
| sk_sp<GrContextThreadSafeProxy> context_threadsafe_proxy_;
|
|
|