This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Multiview painting: Studio #40399
Closed
Closed
Multiview painting: Studio #40399
Changes from all commits
Commits
Show all changes
175 commits
Select commit
Hold shift + click to select a range
79e470d
Move context out
dkwingsmt 3e211d5
Format
dkwingsmt c59b47d
Release main_context_
dkwingsmt 4ead1fb
Merge remote-tracking branch 'origin/main' into multiview-engine-3
dkwingsmt 691e943
Split out CreateSurface
dkwingsmt 7d95498
Fix fuchsia test
dkwingsmt c27c24f
Merge remote-tracking branch 'origin/main' into multiview-engine-3
dkwingsmt 3a3ad87
Fix windows test
dkwingsmt e3ce917
Update shell.cc
dkwingsmt caac3d9
Remove unused CreateSnapshotSurface
dkwingsmt 98d3587
Extract studio and platformview's ctor
dkwingsmt f27fe70
Create studio, compilable
dkwingsmt be3a14c
Remove the arg in the callback
dkwingsmt d5d29e6
Split studio, compilable
dkwingsmt 424d9a7
Format
dkwingsmt c80362f
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt beb6db9
conditional import
dkwingsmt 65f2fe7
lint
dkwingsmt 4ef438c
Add gpu studios
dkwingsmt 2617c70
Add GPUStudios, compilable
dkwingsmt b9f524c
Format
dkwingsmt b1ced68
Add CreateGPUStudio to AndroidSurfaces
dkwingsmt 6c7dfc9
Add IOSSurface::CreateGPUStudio
dkwingsmt fa138f1
Format
dkwingsmt 116d9b3
Compile
dkwingsmt 1454b83
Try to fix compile
dkwingsmt 6c8b153
fuchsia studio
dkwingsmt 52ee277
Format
dkwingsmt 6e298c4
Compile
dkwingsmt aeac80f
Compile
dkwingsmt c985269
Format
dkwingsmt c2e9f57
Compile
dkwingsmt dceb2d2
Format
dkwingsmt 9f256fa
Compile
dkwingsmt 05063a5
Wire up platformview and rasterizer
dkwingsmt 37e119c
Fix compile
dkwingsmt a099aab
Mock more
dkwingsmt 0a1aa0a
Format
dkwingsmt 801b4f4
Fix shell unittest
dkwingsmt aab8ece
SkSLPrecompiler
dkwingsmt 172e4dd
Fix all tests
dkwingsmt 9489c4e
Fix compile
dkwingsmt 1eb7657
Fix ShellTestPlatformViewVulkan compile
dkwingsmt 06ce3f4
Format
dkwingsmt cd14ba1
Fix a few tests
dkwingsmt 283a451
Format
dkwingsmt 8e6ef11
Fix fuchsia test
dkwingsmt 6c444b7
Fix ocmpile and lint
dkwingsmt 599a411
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 842a1bb
Fix lint
dkwingsmt 99116ef
Fix GL bug
dkwingsmt de857a7
Fix order
dkwingsmt 4fa18cc
Try to revert ShellTestPlatformViewVulkan
dkwingsmt 8048a3a
OffScreenContext
dkwingsmt 2c9c7e8
Fix vulkan bug
dkwingsmt adf3515
Remove unnecessary methods of Surface.
dkwingsmt 4578947
Compile
dkwingsmt 99893aa
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt c94c371
Try to fix Android snapshot
dkwingsmt d00abbf
Fix compile
dkwingsmt 841ba56
Try fix android snapshotting
dkwingsmt e59b8b8
Split Setup and RegisterSurface
dkwingsmt a671009
Replace GetLastLayerTree with Has*, add enable_leaf_layer_tracing to …
dkwingsmt bd58880
Better flow DrawLastLayerTree
dkwingsmt dc6be1f
Remove resubmitted; replace with DoDrawResult
dkwingsmt 0bd3a34
Rasterizer has multiple surfaces
dkwingsmt 644d50a
surfaces_ contains objects instead of unique_ptrs
dkwingsmt 253f3c9
Split out CreateSurface
dkwingsmt 9dc2ceb
Embedder.AddRenderSurface
dkwingsmt 13b3a95
Fix embedder test
dkwingsmt 23d99de
Move MakeGLContext to studio
dkwingsmt a9ff44c
Remove config
dkwingsmt ceb0e11
Add view id to many
dkwingsmt 4e8760a
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 2c69eda
Fix ios
dkwingsmt 31c1068
Fix compile
dkwingsmt 45109ab
Add view_id to acquireFrame
dkwingsmt d5deac8
Remembered texture-view map
dkwingsmt b73e7a8
Put view ID in MetalTexture for now
dkwingsmt eda1227
Fix fuchsia compile
dkwingsmt f9e882a
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 30f816b
CreateSurface add view_id
dkwingsmt 442ed4f
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 7253653
Add and remove View
dkwingsmt d30b586
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 2c58a8e
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt a910a04
Workable 2 (multiple initial window)
dkwingsmt 6701a63
Format
dkwingsmt 2391ce3
Compile
dkwingsmt d934818
Create layer tree on taking
dkwingsmt 474b357
Let takeLayerTree remove config for now
dkwingsmt 39a3a09
Format
dkwingsmt ba4b01a
lint
dkwingsmt c8bd69b
Compute layer tree size in RuntimeConfiguration
dkwingsmt 6a03556
Resolve toImageSync
dkwingsmt 30b95c6
Convert toImage
dkwingsmt ae2c065
Right before dart_ui.cc
dkwingsmt d7fa9d6
Fix crash
dkwingsmt 2ccc869
To dart:ui
dkwingsmt 99bfd24
config is no longer a ptr
dkwingsmt 768aa5e
Implicit ratio
dkwingsmt 332f86a
An easier way
dkwingsmt c829f37
Add TODO and comment
dkwingsmt 6c5c8c4
Merge branch 'layer-tree-content-2' into mp-studio
dkwingsmt c713afb
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 1c6d74d
Fix compile
dkwingsmt aa02906
Fix more
dkwingsmt 2f00054
Fix some compile
dkwingsmt 8bd5109
More compile errors
dkwingsmt af9c6a7
Format
dkwingsmt 0a4eb92
Fix crash
dkwingsmt a54fe19
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt e5fe6df
Remove embedderSurface::CreateResourceContext
dkwingsmt bb6f0ee
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt bda89f0
No more shared synchronizers, but passed from engine
dkwingsmt f6be4c1
Fix TestCreate bug
dkwingsmt ff3bfd0
Fix compile error in last merge
dkwingsmt 44ab24b
Fix compile
dkwingsmt 9bb4a01
Remove print
dkwingsmt 4121d97
Remove unused var
dkwingsmt f993644
Add more view_id to config
dkwingsmt 783e34e
Impl
dkwingsmt da707ec
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt f174bd4
Fix 1
dkwingsmt ecbb1a9
Fix more
dkwingsmt ea97d92
Fix compile
dkwingsmt f742413
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt f757ab7
Compile
dkwingsmt cad24e3
Fix compile
dkwingsmt da84c2f
Fix lint
dkwingsmt df41175
Remove Surface::GetContext
dkwingsmt d09dad0
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 6d33a11
Update shell_test_platform_view_vulkan.h
dkwingsmt 6eef030
Compile
dkwingsmt 9b8ec84
Compile
dkwingsmt 9e59295
Compile
dkwingsmt 931cb91
Fix fuchsia compile
dkwingsmt 901b559
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 70d4fc6
Lint
dkwingsmt 3bcd96a
Move back debug_label_
dkwingsmt 1607292
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 2c72517
Merge remote-tracking branch 'origin/main' into multiview-thread-sync…
dkwingsmt b9226c9
Basic test
dkwingsmt 57e159f
Use set specific to check main
dkwingsmt 85b1262
Use set specific to check main
dkwingsmt 23c3851
FinishResizingOnlyWhenCommittingMatchingSize
dkwingsmt b3cbb05
FinishResizingWhenShuttingDown
dkwingsmt dc05a5a
multi view tests
dkwingsmt 98b4013
Docs and locs
dkwingsmt 31b5430
Use better way, and fix tests
dkwingsmt 574e5e9
Merge branch 'multiview-thread-synchronizer' into mp-studio
dkwingsmt 9cb1f69
Make FVC reg/dereg
dkwingsmt da15304
Remove FV:shutdown
dkwingsmt 5f0f0c2
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 6851904
Merge branch 'multiview-thread-synchronizer' into mp-studio
dkwingsmt 0a9a584
Short variant
dkwingsmt e16dc84
Merge branch 'shell_test_config' into mp-studio-externalviewembedder
dkwingsmt 1841648
Move support_thread_merging to PlatformView
dkwingsmt f806c6c
Merge remote-tracking branch 'origin/main' into mp-studio-externalvie…
dkwingsmt b930351
Fix raster test and fuchsia compile
dkwingsmt 9e4b495
Fix compile
dkwingsmt e4832a3
Fix test parameter
dkwingsmt 3eb95bd
Fix compile
dkwingsmt 6892eb6
Move assigning view embedder to add surface
dkwingsmt 3bc500a
Merge remote-tracking branch 'origin/main' into mp-studio-externalvie…
dkwingsmt cd7960a
View record
dkwingsmt 52f0aa7
Change to multiple view embedder and multiple compositor
dkwingsmt 5ad2f7d
Fix bug
dkwingsmt 682c157
Fix linux compiling
dkwingsmt b4cb930
Remove view_id from AcquireFrame
dkwingsmt 1b12097
Fix compile
dkwingsmt 6192080
Doc fix
dkwingsmt ef59ad0
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt 29007bb
Merge remote-tracking branch 'origin/main' into mp-studio
dkwingsmt fa03dd2
Add back files that were somehow removed
dkwingsmt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| // 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 "flutter/flow/studio.h" | ||
|
|
||
| namespace flutter { | ||
|
|
||
| Studio::Studio() = default; | ||
|
|
||
| Studio::~Studio() = default; | ||
|
|
||
| std::unique_ptr<GLContextResult> Studio::MakeRenderContextCurrent() { | ||
| return std::make_unique<GLContextDefaultResult>(true); | ||
| } | ||
|
|
||
| bool Studio::ClearRenderContext() { | ||
| return false; | ||
| } | ||
|
|
||
| bool Studio::AllowsDrawingWhenGpuDisabled() const { | ||
| return true; | ||
| } | ||
|
|
||
| bool Studio::EnableRasterCache() const { | ||
| return true; | ||
| } | ||
|
|
||
| std::shared_ptr<impeller::AiksContext> Studio::GetAiksContext() const { | ||
| return nullptr; | ||
| } | ||
|
|
||
| } // namespace flutter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // 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_FLOW_STUDIO_H_ | ||
| #define FLUTTER_FLOW_STUDIO_H_ | ||
|
|
||
| #include <memory> | ||
|
|
||
| #include "flutter/common/graphics/gl_context_switch.h" | ||
| #include "flutter/fml/macros.h" | ||
|
|
||
| class GrDirectContext; | ||
|
|
||
| namespace impeller { | ||
| class AiksContext; | ||
| } // namespace impeller | ||
|
|
||
| namespace flutter { | ||
|
|
||
| class Studio { | ||
| public: | ||
| Studio(); | ||
|
|
||
| virtual ~Studio(); | ||
|
|
||
| virtual bool IsValid() = 0; | ||
|
|
||
| virtual GrDirectContext* GetContext() = 0; | ||
|
|
||
| virtual std::unique_ptr<GLContextResult> MakeRenderContextCurrent(); | ||
|
|
||
| virtual bool ClearRenderContext(); | ||
|
|
||
| virtual bool AllowsDrawingWhenGpuDisabled() const; | ||
|
|
||
| virtual bool EnableRasterCache() const; | ||
|
|
||
| virtual std::shared_ptr<impeller::AiksContext> GetAiksContext() const; | ||
|
|
||
| private: | ||
| FML_DISALLOW_COPY_AND_ASSIGN(Studio); | ||
| }; | ||
|
|
||
| } // namespace flutter | ||
|
|
||
| #endif // FLUTTER_FLOW_STUDIO_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.