[Impeller] delete unused aiks PictureRecorder. (flutter/engine#54495)

I cannot find any references to this class in the code base, and it doesn't seem used anywhere.
This commit is contained in:
Jonah Williams
2024-08-11 16:20:21 -07:00
committed by GitHub
parent bc8c82d157
commit 0af4dd27e0
4 changed files with 0 additions and 58 deletions

View File

@@ -42638,8 +42638,6 @@ ORIGIN: ../../../flutter/impeller/aiks/paint_pass_delegate.cc + ../../../flutter
ORIGIN: ../../../flutter/impeller/aiks/paint_pass_delegate.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/picture.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/picture.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/picture_recorder.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/aiks/picture_recorder.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation.cc + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation.h + ../../../flutter/LICENSE
ORIGIN: ../../../flutter/impeller/base/allocation_size.cc + ../../../flutter/LICENSE
@@ -45470,8 +45468,6 @@ FILE: ../../../flutter/impeller/aiks/paint_pass_delegate.cc
FILE: ../../../flutter/impeller/aiks/paint_pass_delegate.h
FILE: ../../../flutter/impeller/aiks/picture.cc
FILE: ../../../flutter/impeller/aiks/picture.h
FILE: ../../../flutter/impeller/aiks/picture_recorder.cc
FILE: ../../../flutter/impeller/aiks/picture_recorder.h
FILE: ../../../flutter/impeller/base/allocation.cc
FILE: ../../../flutter/impeller/base/allocation.h
FILE: ../../../flutter/impeller/base/allocation_size.cc

View File

@@ -26,8 +26,6 @@ impeller_component("aiks") {
"paint_pass_delegate.h",
"picture.cc",
"picture.h",
"picture_recorder.cc",
"picture_recorder.h",
]
public_deps = [

View File

@@ -1,23 +0,0 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "impeller/aiks/picture_recorder.h"
#include "impeller/aiks/canvas.h"
namespace impeller {
PictureRecorder::PictureRecorder() : canvas_(std::make_shared<Canvas>()) {}
PictureRecorder::~PictureRecorder() = default;
std::shared_ptr<Canvas> PictureRecorder::GetCanvas() const {
return canvas_;
}
Picture PictureRecorder::EndRecordingAsPicture() {
return canvas_->EndRecordingAsPicture();
}
} // namespace impeller

View File

@@ -1,29 +0,0 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_
#define FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_
#include "impeller/aiks/canvas.h"
#include "impeller/aiks/picture.h"
namespace impeller {
class PictureRecorder {
public:
PictureRecorder();
~PictureRecorder();
std::shared_ptr<Canvas> GetCanvas() const;
Picture EndRecordingAsPicture();
private:
std::shared_ptr<Canvas> canvas_;
};
} // namespace impeller
#endif // FLUTTER_IMPELLER_AIKS_PICTURE_RECORDER_H_