tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 0791aef2a884dec744601ac73fa33f365a8a19f3
parent ee2b31a7dbbf17c3bf786dfca7fb09720b767399
Author: Markus Stange <mstange.moz@gmail.com>
Date:   Fri,  3 Oct 2025 12:45:28 +0000

Bug 1987007 - Remove now-unused remote snapshotter implementation. r=bradwerth

Differential Revision: https://phabricator.services.mozilla.com/D267278

Diffstat:
Dgfx/layers/NativeLayerRootRemoteMacSnapshotter.h | 47-----------------------------------------------
Dgfx/layers/NativeLayerRootRemoteMacSnapshotter.mm | 50--------------------------------------------------
Mgfx/layers/moz.build | 2--
3 files changed, 0 insertions(+), 99 deletions(-)

diff --git a/gfx/layers/NativeLayerRootRemoteMacSnapshotter.h b/gfx/layers/NativeLayerRootRemoteMacSnapshotter.h @@ -1,47 +0,0 @@ -/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#ifndef mozilla_layers_NativeLayerRootRemoteMacSnapshotter_h -#define mozilla_layers_NativeLayerRootRemoteMacSnapshotter_h - -#include "mozilla/RefPtr.h" -#include "mozilla/UniquePtr.h" -#include "mozilla/gfx/Point.h" -#include "mozilla/layers/NativeLayer.h" -#include "mozilla/layers/ScreenshotGrabber.h" - -namespace mozilla { -namespace layers { - -class NativeLayerRootRemoteMacChild; - -class NativeLayerRootRemoteMacSnapshotter : public NativeLayerRootSnapshotter { - public: - static UniquePtr<NativeLayerRootRemoteMacSnapshotter> Create( - NativeLayerRootRemoteMacChild* aLayerRoot); - - bool ReadbackPixels(const gfx::IntSize& aReadbackSize, - gfx::SurfaceFormat aReadbackFormat, - const Range<uint8_t>& aReadbackBuffer); - - already_AddRefed<profiler_screenshots::RenderSource> GetWindowContents( - const gfx::IntSize& aSize); - already_AddRefed<profiler_screenshots::DownscaleTarget> CreateDownscaleTarget( - const gfx::IntSize& aSize); - - already_AddRefed<profiler_screenshots::AsyncReadbackBuffer> - CreateAsyncReadbackBuffer(const gfx::IntSize& aSize); - - protected: - explicit NativeLayerRootRemoteMacSnapshotter( - NativeLayerRootRemoteMacChild* aLayerRoot); - - RefPtr<NativeLayerRootRemoteMacChild> mLayerRoot; -}; - -} // namespace layers -} // namespace mozilla - -#endif // mozilla_layers_NativeLayerRootRemoteMacSnapshotter_h diff --git a/gfx/layers/NativeLayerRootRemoteMacSnapshotter.mm b/gfx/layers/NativeLayerRootRemoteMacSnapshotter.mm @@ -1,50 +0,0 @@ -/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#include "mozilla/layers/NativeLayerRootRemoteMacSnapshotter.h" - -#include "mozilla/layers/NativeLayerRootRemoteMacChild.h" - -namespace mozilla { -namespace layers { - -/* static */ UniquePtr<NativeLayerRootRemoteMacSnapshotter> -NativeLayerRootRemoteMacSnapshotter::Create( - NativeLayerRootRemoteMacChild* aLayerRoot) { - return UniquePtr<NativeLayerRootRemoteMacSnapshotter>( - new NativeLayerRootRemoteMacSnapshotter(aLayerRoot)); -} - -NativeLayerRootRemoteMacSnapshotter::NativeLayerRootRemoteMacSnapshotter( - NativeLayerRootRemoteMacChild* aLayerRoot) - : mLayerRoot(aLayerRoot) {} - -bool NativeLayerRootRemoteMacSnapshotter::ReadbackPixels( - const gfx::IntSize& aReadbackSize, gfx::SurfaceFormat aReadbackFormat, - const Range<uint8_t>& aReadbackBuffer) { - return mLayerRoot->ReadbackPixels(aReadbackSize, aReadbackFormat, - aReadbackBuffer); -} - -already_AddRefed<profiler_screenshots::RenderSource> -NativeLayerRootRemoteMacSnapshotter::GetWindowContents( - const gfx::IntSize& aSize) { - return nullptr; -} - -already_AddRefed<profiler_screenshots::DownscaleTarget> -NativeLayerRootRemoteMacSnapshotter::CreateDownscaleTarget( - const gfx::IntSize& aSize) { - return nullptr; -} - -already_AddRefed<profiler_screenshots::AsyncReadbackBuffer> -NativeLayerRootRemoteMacSnapshotter::CreateAsyncReadbackBuffer( - const gfx::IntSize& aSize) { - return nullptr; -} - -} // namespace layers -} // namespace mozilla diff --git a/gfx/layers/moz.build b/gfx/layers/moz.build @@ -275,7 +275,6 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"): "NativeLayerRemoteMac.h", "NativeLayerRootRemoteMacChild.h", "NativeLayerRootRemoteMacParent.h", - "NativeLayerRootRemoteMacSnapshotter.h", "SurfacePoolCA.h", ] EXPORTS += [ @@ -288,7 +287,6 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] in ("cocoa", "uikit"): "NativeLayerRemoteMac.mm", "NativeLayerRootRemoteMacChild.mm", "NativeLayerRootRemoteMacParent.mm", - "NativeLayerRootRemoteMacSnapshotter.mm", "SurfacePoolCA.mm", ] SOURCES += [