Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tidy
  • Loading branch information
dnfield committed Aug 2, 2023
commit 23ebd1cbe8ab263470b396f3b553abea6bbc0ccd
13 changes: 5 additions & 8 deletions lib/ui/painting/picture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
#endif // IMPELLER_SUPPORTS_RENDERING
#include "flutter/lib/ui/painting/display_list_image_gpu.h"
#include "third_party/tonic/converter/dart_converter.h"
#include "third_party/tonic/dart_args.h"
#include "third_party/tonic/dart_binding_macros.h"
#include "third_party/tonic/dart_library_natives.h"
#include "third_party/tonic/dart_persistent_value.h"
#include "third_party/tonic/logging/dart_invoke.h"

Expand Down Expand Up @@ -61,19 +58,19 @@ static sk_sp<DlImage> CreateDeferredImage(
uint32_t width,
uint32_t height,
fml::TaskRunnerAffineWeakPtr<SnapshotDelegate> snapshot_delegate,
fml::RefPtr<fml::TaskRunner> raster_task_runner,
const fml::RefPtr<fml::TaskRunner>& raster_task_runner,
fml::RefPtr<SkiaUnrefQueue> unref_queue) {
#if IMPELLER_SUPPORTS_RENDERING
if (impeller) {
if (display_list) {
return DlDeferredImageGPUImpeller::Make(
std::move(display_list), SkISize::Make(width, height),
std::move(snapshot_delegate), std::move(raster_task_runner));
std::move(snapshot_delegate), raster_task_runner);
}
FML_DCHECK(impeller_picture);
return DlDeferredImageGPUImpeller::Make(
impeller_picture, SkISize::Make(width, height),
std::move(snapshot_delegate), std::move(raster_task_runner));
std::move(snapshot_delegate), raster_task_runner);
}
#endif // IMPELLER_SUPPORTS_RENDERING

Expand All @@ -98,8 +95,8 @@ void Picture::RasterizeToImageSync(uint32_t width,
auto image = CanvasImage::Create();
auto dl_image = CreateDeferredImage(
dart_state->IsImpellerEnabled(), display_list(), impeller_picture(),
width, height, std::move(snapshot_delegate),
std::move(raster_task_runner), std::move(unref_queue));
width, height, std::move(snapshot_delegate), raster_task_runner,
std::move(unref_queue));

image->set_image(dl_image);
image->AssociateWithDartWrapper(raw_image_handle);
Expand Down