This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +206
-348
lines changed
typographer/backends/skia Expand file tree Collapse file tree 8 files changed +206
-348
lines changed Original file line number Diff line number Diff line change @@ -42656,8 +42656,6 @@ ORIGIN: ../../../flutter/impeller/renderer/backend/gles/texture_gles.cc + ../../
4265642656ORIGIN: ../../../flutter/impeller/renderer/backend/gles/texture_gles.h + ../../../flutter/LICENSE
4265742657ORIGIN: ../../../flutter/impeller/renderer/backend/metal/allocator_mtl.h + ../../../flutter/LICENSE
4265842658ORIGIN: ../../../flutter/impeller/renderer/backend/metal/allocator_mtl.mm + ../../../flutter/LICENSE
42659- ORIGIN: ../../../flutter/impeller/renderer/backend/metal/blit_command_mtl.h + ../../../flutter/LICENSE
42660- ORIGIN: ../../../flutter/impeller/renderer/backend/metal/blit_command_mtl.mm + ../../../flutter/LICENSE
4266142659ORIGIN: ../../../flutter/impeller/renderer/backend/metal/blit_pass_mtl.h + ../../../flutter/LICENSE
4266242660ORIGIN: ../../../flutter/impeller/renderer/backend/metal/blit_pass_mtl.mm + ../../../flutter/LICENSE
4266342661ORIGIN: ../../../flutter/impeller/renderer/backend/metal/command_buffer_mtl.h + ../../../flutter/LICENSE
@@ -45531,8 +45529,6 @@ FILE: ../../../flutter/impeller/renderer/backend/gles/texture_gles.cc
4553145529FILE: ../../../flutter/impeller/renderer/backend/gles/texture_gles.h
4553245530FILE: ../../../flutter/impeller/renderer/backend/metal/allocator_mtl.h
4553345531FILE: ../../../flutter/impeller/renderer/backend/metal/allocator_mtl.mm
45534- FILE: ../../../flutter/impeller/renderer/backend/metal/blit_command_mtl.h
45535- FILE: ../../../flutter/impeller/renderer/backend/metal/blit_command_mtl.mm
4553645532FILE: ../../../flutter/impeller/renderer/backend/metal/blit_pass_mtl.h
4553745533FILE: ../../../flutter/impeller/renderer/backend/metal/blit_pass_mtl.mm
4553845534FILE: ../../../flutter/impeller/renderer/backend/metal/command_buffer_mtl.h
Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ impeller_component("metal") {
88 sources = [
99 " allocator_mtl.h" ,
1010 " allocator_mtl.mm" ,
11- " blit_command_mtl.h" ,
12- " blit_command_mtl.mm" ,
1311 " blit_pass_mtl.h" ,
1412 " blit_pass_mtl.mm" ,
1513 " command_buffer_mtl.h" ,
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 77
88#include < Metal/Metal.h>
99
10- #include " impeller/renderer/backend/metal/blit_command_mtl.h"
1110#include " impeller/renderer/blit_pass.h"
1211
1312namespace impeller {
@@ -20,10 +19,14 @@ class BlitPassMTL final : public BlitPass {
2019 private:
2120 friend class CommandBufferMTL ;
2221
23- std::vector<std::unique_ptr<BlitEncodeMTL>> commands_ ;
22+ id<MTLBlitCommandEncoder> encoder_ = nil ;
2423 id<MTLCommandBuffer> buffer_ = nil;
25- std::string label_;
2624 bool is_valid_ = false ;
25+ bool is_metal_trace_active_ = false ;
26+ // Many parts of the codebase will start writing to a render pass but
27+ // never submit them. This boolean is used to track if a submit happened
28+ // so that in the dtor we can always ensure the render pass is finished.
29+ mutable bool did_finish_encoding_ = false ;
2730
2831 explicit BlitPassMTL (id<MTLCommandBuffer> buffer);
2932
@@ -37,8 +40,6 @@ class BlitPassMTL final : public BlitPass {
3740 bool EncodeCommands (
3841 const std::shared_ptr<Allocator>& transients_allocator) const override ;
3942
40- bool EncodeCommands (id<MTLBlitCommandEncoder> pass) const ;
41-
4243 // |BlitPass|
4344 bool OnCopyTextureToTextureCommand (std::shared_ptr<Texture> source,
4445 std::shared_ptr<Texture> destination,
You can’t perform that action at this time.
0 commit comments