0

[MappableSI] Remove GpuMemoryBufferManager from blink::Platform.

Remove GpuMemoryBufferManager and all related methods from
blink::Platform and all its implementations as no clients are now using
it after being converted to use Mappable Shared Image.

Bug: 404887301
Change-Id: I52b50b30318362002eeca88c78f372fcb115d0ac
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6403464
Commit-Queue: vikas soni <vikassoni@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1439105}
This commit is contained in:
vikas soni
2025-03-27 16:57:00 -07:00
committed by Chromium LUCI CQ
parent 511986b5a9
commit 92e8f8d3c9
4 changed files with 0 additions and 20 deletions
content/renderer
third_party/blink
public
platform
renderer

@ -872,14 +872,6 @@ void RendererBlinkPlatformImpl::OnGpuChannelEstablished(
//------------------------------------------------------------------------------
gpu::GpuMemoryBufferManager*
RendererBlinkPlatformImpl::GetGpuMemoryBufferManager() {
RenderThreadImpl* thread = RenderThreadImpl::current();
return thread ? thread->GetGpuMemoryBufferManager() : nullptr;
}
//------------------------------------------------------------------------------
blink::WebString RendererBlinkPlatformImpl::ConvertIDNToUnicode(
const blink::WebString& host) {
return WebString::FromUTF16(url_formatter::IDNToUnicode(host.Ascii()));

@ -184,7 +184,6 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
std::unique_ptr<blink::WebGraphicsContext3DProvider>
CreateWebGPUGraphicsContext3DProvider(
const blink::WebURL& document_url) override;
gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
blink::WebString ConvertIDNToUnicode(const blink::WebString& host) override;
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
void SetThreadType(base::PlatformThreadId thread_id,

@ -82,7 +82,6 @@ class ColorSpace;
namespace gpu {
class GpuChannelHost;
class GpuMemoryBufferManager;
}
namespace media {
@ -536,10 +535,6 @@ class BLINK_PLATFORM_EXPORT Platform {
base::OnceCallback<
void(std::unique_ptr<blink::WebGraphicsContext3DProvider>)> callback);
virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() {
return nullptr;
}
// When true, animations will run on a compositor thread independently from
// the blink main thread.
// This is true when there exists a renderer compositor in this process. But

@ -5,7 +5,6 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TEST_GPU_MEMORY_BUFFER_TEST_PLATFORM_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_TEST_GPU_MEMORY_BUFFER_TEST_PLATFORM_H_
#include "gpu/command_buffer/client/test_gpu_memory_buffer_manager.h"
#include "third_party/blink/renderer/platform/graphics/gpu/shared_gpu_context.h"
#include "third_party/blink/renderer/platform/testing/testing_platform_support.h"
@ -25,11 +24,6 @@ class GpuMemoryBufferTestPlatform : public blink::TestingPlatformSupport {
}
private:
gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override {
return &test_gpu_memory_buffer_manager_;
}
gpu::TestGpuMemoryBufferManager test_gpu_memory_buffer_manager_;
bool is_gpu_compositing_disabled_ = false;
};