/* -*- 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::Create( NativeLayerRootRemoteMacChild* aLayerRoot) { return UniquePtr( new NativeLayerRootRemoteMacSnapshotter(aLayerRoot)); } NativeLayerRootRemoteMacSnapshotter::NativeLayerRootRemoteMacSnapshotter( NativeLayerRootRemoteMacChild* aLayerRoot) : mLayerRoot(aLayerRoot) {} bool NativeLayerRootRemoteMacSnapshotter::ReadbackPixels( const gfx::IntSize& aReadbackSize, gfx::SurfaceFormat aReadbackFormat, const Range& aReadbackBuffer) { return mLayerRoot->ReadbackPixels(aReadbackSize, aReadbackFormat, aReadbackBuffer); } already_AddRefed NativeLayerRootRemoteMacSnapshotter::GetWindowContents( const gfx::IntSize& aSize) { return nullptr; } already_AddRefed NativeLayerRootRemoteMacSnapshotter::CreateDownscaleTarget( const gfx::IntSize& aSize) { return nullptr; } already_AddRefed NativeLayerRootRemoteMacSnapshotter::CreateAsyncReadbackBuffer( const gfx::IntSize& aSize) { return nullptr; } } // namespace layers } // namespace mozilla