Commit Graph

184 Commits

Author SHA1 Message Date
Brad Werth
27feaefa61 Bug 1764201 Part 3: Remove screen info stuff from gfxPlatform. r=jgilbert,geckoview-reviewers
The gfxPlatform::GetScreen* methods have always been redundant. Removing
them in favor of ScreenManager or nsDeviceContext methods will
discourage future code authors from adding more redundancy in
gfxPlatform.

Differential Revision: https://phabricator.services.mozilla.com/D203672
2024-03-19 13:52:32 +00:00
unknown
6b54094ea8 Bug 1885028 - PlainOldDataSerializer use removed from dom/canvas. r=gfx-reviewers,lsalzman,ahale
Differential Revision: https://phabricator.services.mozilla.com/D204432
2024-03-14 00:21:23 +00:00
Kelsey Gilbert
8ef95f8d10 Bug 1878930 - s/RawBuffer/Span/: TexImage: Use span, fix dtwebgl callers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202027
2024-02-29 00:37:30 +00:00
Lee Salzman
182948cbc7 Bug 1881194 - Send TexTypeForWebgl from CanvasChild to CanvasTranslator. r=sotaro
ImageBridgeChild::GetSingleton returns null in the GPU process. This causes
DrawTargetWebgl::CopyToSwapChain to use an incorrect texture type for WebGL
canvases when in the GPU process. To work around this, determine the texture
type for WebGL in the content process and send it to CanvasTranslator for
later usage.

Differential Revision: https://phabricator.services.mozilla.com/D202292
2024-02-22 04:28:44 +00:00
Sandor Molnar
d9c4b21b0d Backed out 7 changesets (bug 1878930) for causing build bustages @ dom/canvas/WebGLTypes.h CLOSED TREE
Backed out changeset 631db0feebb4 (bug 1878930)
Backed out changeset 72ab4dbbf8ed (bug 1878930)
Backed out changeset e5119acd8c8f (bug 1878930)
Backed out changeset 3cd4b2423281 (bug 1878930)
Backed out changeset 4a5512ff4424 (bug 1878930)
Backed out changeset 6f5c64075e31 (bug 1878930)
Backed out changeset fb3b3487a529 (bug 1878930)
2024-02-20 21:25:02 +02:00
Kelsey Gilbert
15143f68a7 Bug 1878930 - s/RawBuffer/Span/: TexImage: Use span, fix dtwebgl callers. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D202027
2024-02-20 17:59:08 +00:00
Lee Salzman
4eba56247d Bug 1880523 - Use aa_stroke_filled_circle in DrawTargetWebgl. r=jrmuizel
WGR is fairly slow at generating specialized circle geometry, whereas we can
generate similar geometry much faster using the AAStroke filled circle
implementation now.

Differential Revision: https://phabricator.services.mozilla.com/D201939
2024-02-15 17:33:15 +00:00
Lee Salzman
0d28396655 Bug 1879178 - Add UninitializedBufferData_SizeOnly for unitialized orphaning of WebGL buffers. r=jgilbert
Currently BufferData when supplied null data, a pattern explicitly recommended in OpenGL for orphaning
buffer before they are subsequently filled with BufferSubData, currently causes zero data to be calloc'd
and uploaded to the buffer, which can be expensive.

In trusted code that only directly accesses WebGLContext, we can add an UninitializedBufferData_SizeOnly
call that can be used for this initialization, with the understanding that subsequent BufferSubData calls
will fill in relevant sections of the buffer before they are ever used.

Differential Revision: https://phabricator.services.mozilla.com/D201176
2024-02-08 23:36:56 +00:00
Lee Salzman
3c808bc246 Bug 1876506 - Check for CopyToSwapChain failure. r=aosmond
CopyToSwapChain was silently failing, causing no texture to get pushed
to RemoteTextureMap, so that when a wait on it was occurring, it would
timeout.

The failure occurred in DrawTargetWebgl::FlushFromSkia, because the
DT's size actually exceeded the value of the texture limit pref when
it was attempting to allocate a temporary texture to blend back a
Skia layer to the WebGL framebuffer. This is fixed by allowing layering
to bypass this limit, as it is always expected that layer blending
succeed.

To guard against future instances of this bug, CopyToSwapChain now returns
a boolean result so that it is fallible and can signal to CanvasTranslator
that it needs to take appropriate fallback measures on failure.

Differential Revision: https://phabricator.services.mozilla.com/D199794
2024-01-27 15:56:04 +00:00
Lee Salzman
b004c2628c Bug 1875221 - Avoid double clear in DrawStrokeMask. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D199692
2024-01-26 19:47:26 +00:00
Lee Salzman
024e0d9915 Bug 1875222 - Implement RecordedSetPermitSubpixelAA. r=aosmond
Certain users of DrawTargetRecording need accurate tracking of SetPermitSubpixelAA.
This ensures the values are properly tracked locally in DrawTargetRecording as well
as forwards any necessary changes to the remote end.

Differential Revision: https://phabricator.services.mozilla.com/D198919
2024-01-18 17:16:08 +00:00
Lee Salzman
2364029b02 Bug 1874534 - Fix DrawTargetWebgl and RemoteTextureMap context loss handling. r=aosmond
When a context loss occurs on DrawTargetWebgl, this may result in a fallback TextureData
being created. Each of these are currently managed by two different RemoteTextureOwnerClients.
This is not really safe at all.

To fix this, CopyToSwapChain is modified so that it can be supplied a RemoteTextureOwnerClient.
Then CanvasTranslator can inject its own RemoteTextureOwnerClient into CopyToSwapChain, rather
than letting CopyToSwapChain use its own separate internal RemoteTextureOwnerClient.

This also tries to address a few other data consistency bugs with the fallback TextureData.

Differential Revision: https://phabricator.services.mozilla.com/D198487
2024-01-13 18:19:24 +00:00
Lee Salzman
8f32c7ab72 Bug 1829457 - Cache DrawTargetWebgl snapshots for fallback when context lost after minimize. r=aosmond
After a minimize, an unknown amount of time or circumstances may be involved that ultimately lead to
a GL context loss. To try to mitigate this, cache software snapshots of DrawTargetWebgls when we are
about to minimize so that these can hopefully be copied into fallback TextureDatas later if the context
is actually lost.

Differential Revision: https://phabricator.services.mozilla.com/D198129
2024-01-10 17:58:32 +00:00
Andrew Osmond
fcd2316c08 Bug 1873701. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D198046
2024-01-09 23:39:13 +00:00
Lee Salzman
23072be7ee Bug 1872646 - Only use DrawTargetWebgl::BeginFrame when actually mutating a canvas. r=aosmond
It's wasteful to call DrawTargetWebgl::BeginFrame if we're locking in a read-only mode. It may
also mess up DrawTargetWebgl's internal profiling if we count a read-only use as an actual frame.

Differential Revision: https://phabricator.services.mozilla.com/D197483
2024-01-02 19:35:04 +00:00
Andrew Osmond
11cefd8d0f Bug 1871613 - Ensure CanvasDrawEventRecorder releases external surface dependencies. r=gfx-reviewers,lsalzman
This patch makes CanvasDrawEventRecorder track what eventCount we
recorded an external surface reference. When the reader has increment
its processedCount above that, we will release our reference as it
should have acquired a strong reference to the data. This was previously
done when we forwarded the texture, but with remote textures, we no
longer have this event. Now we check when we start a new recording, or
attempt to clear cached resources.

Differential Revision: https://phabricator.services.mozilla.com/D197216
2023-12-23 01:34:31 +00:00
Lee Salzman
7b5fd9b289 Bug 1829026 - Optimize circle drawing in DrawTargetWebgl. r=aosmond
Chartjs heavily relies on circle drawing, which dispatches to the FillCircle and
StrokeCircle hooks in DrawTarget. These need to be implemented in DrawTargetWebgl.

Differential Revision: https://phabricator.services.mozilla.com/D194353
2023-12-18 18:10:47 +00:00
Lee Salzman
0306af2160 Bug 1829026 - Update CanvasTranslator to work with DrawTargetWebgl. r=aosmond
This adds the necessary infrastructure for CanvasTranslator to allocate DrawTargetWebgl
instead of just allocating TextureData, and to use RemoteTextureMap to handle sending
the DrawTargetWebgl frames to the compositor.

This optimizes snapshot transport to use fewer copies to and from shmems when we know
the snapshot contents can be sourced from a shmem.

This adds a blocking mechanism separate from deactivation so that existing DrawTargetWebgls
can continue processing events while denying further ones from being created in the event
that allocating further DrawTargetWebgls might cause problems, but so that we don't disrupt
canvases that are already in flight.

PersistentBufferProviderAccelerated still remains the buffer provider for the new setup,
but just allocates a single RecordedTextureData internally. Since DrawTargetWebgl already
does its own swap chain management internally, we do not want to use the multiple texture
client strategy that PersistentBufferProviderShared does.

This adds a fallback mechanism such that if DrawTargetWebgl allocation fails, a TextureData
is allocated instead that still sends results to RemoteTextureMap. This has the advantage
that we don't need to synchronously block in the content process to verify if acceleration
succeeded, as the costs of such blocking are rather extreme and we must still produce the
rendered frame to ensure the user sees the correct result if the speculative acceleration
failed. It then notifies the content process asynchronously via the refresh mechanism to
try to recreate a non-accelerated buffer provider when it is ready.

There is one additional hitch in RemoteTextureMap that we need to add a mechanism to deal
with the setup of the RemoteTextureOwner. When display list building initially needs to get
the remote texture, the RemoteTextureOwner might not exist yet. In this case, we need to add
a block to ensure we wait for that to occur so that we do not render an erroneous result.
Previously, this block was handled in ClientWebGLContext. Since that is no longer used,
the block must be reinstated somewhere else until a non-blocking mechanism for display list
building to proceed with a stub texture host wrapper can be implemented.

Currently this leaves the gfx.canvas.remote and gfx.canvas.accelerated prefs as separate
toggles rather than trying to lump everything into one mechanism. While this may be desirable
in the future, currently Direct2D remote canvas is a separate acceleration mechanism that
needs to co-exist with the WebGL acceleration, and so being able to toggle both on or off
for testing is desirable.

Differential Revision: https://phabricator.services.mozilla.com/D194352
2023-12-18 18:10:46 +00:00
Lee Salzman
cebb5ebe88 Bug 1829026 - Support using DrawTargetWebgl via remote canvas. r=aosmond
This mostly restructures DrawTargetWebgl to no longer rely upon ClientWebGLContext.
Instead, it must directly interact with WebGLContext which requires some noisy changes
of the GL rendering API used.

In addition, this restructures SharedContextWebgl so that it can be explicitly
allocated and further DrawTargetWebgls can be allocated that feed off of it.

This is all towards the ultimate goal of relying on remote canvas infrastructure for
remoting instead.

Differential Revision: https://phabricator.services.mozilla.com/D194351
2023-12-18 18:10:46 +00:00
Sebastian Hengst
cdce9d5ae9 Backed out 10 changesets (bug 1829026) for causing bug 1869760 and bug 1869738. a=backout
Backed out changeset 4c619422efe5 (bug 1829026)
Backed out changeset 77da89c7dab7 (bug 1829026)
Backed out changeset 19d28d8f75a4 (bug 1829026)
Backed out changeset 674b60ba54b1 (bug 1829026)
Backed out changeset 31935f164ef0 (bug 1829026)
Backed out changeset 13c9bf69085f (bug 1829026)
Backed out changeset 330a6732fc0b (bug 1829026)
Backed out changeset 974c08a3791b (bug 1829026)
Backed out changeset 3ba040642ddc (bug 1829026)
Backed out changeset 9d9b3a68858c (bug 1829026)
2023-12-13 19:20:00 +01:00
Lee Salzman
6f85b64281 Bug 1829026 - Optimize circle drawing in DrawTargetWebgl. r=aosmond
Chartjs heavily relies on circle drawing, which dispatches to the FillCircle and
StrokeCircle hooks in DrawTarget. These need to be implemented in DrawTargetWebgl.

Differential Revision: https://phabricator.services.mozilla.com/D194353
2023-12-12 07:35:03 +00:00
Lee Salzman
ccc64b116d Bug 1829026 - Support using DrawTargetWebgl via remote canvas. r=aosmond
This mostly restructures DrawTargetWebgl to no longer rely upon ClientWebGLContext.
Instead, it must directly interact with WebGLContext which requires some noisy changes
of the GL rendering API used.

In addition, this restructures SharedContextWebgl so that it can be explicitly
allocated and further DrawTargetWebgls can be allocated that feed off of it.

This is all towards the ultimate goal of relying on remote canvas infrastructure for
remoting instead.

Differential Revision: https://phabricator.services.mozilla.com/D194351
2023-12-12 07:35:02 +00:00
Cosmin Sabou
088aba68e8 Backed out 8 changesets (bug 1829026) for causing several mochitest failures. CLOSED TREE
Backed out changeset 790ba6aa65e4 (bug 1829026)
Backed out changeset 2ff1f5f41380 (bug 1829026)
Backed out changeset de6ddf5eb2a7 (bug 1829026)
Backed out changeset 773e7b31ac6e (bug 1829026)
Backed out changeset e09602ab096d (bug 1829026)
Backed out changeset fe16d4ac1049 (bug 1829026)
Backed out changeset c0fe0aea86c2 (bug 1829026)
Backed out changeset 53d6f69055f1 (bug 1829026)
2023-12-05 16:08:36 +02:00
Lee Salzman
a0e2a74c15 Bug 1829026 - Optimize circle drawing in DrawTargetWebgl. r=aosmond
Chartjs heavily relies on circle drawing, which dispatches to the FillCircle and
StrokeCircle hooks in DrawTarget. These need to be implemented in DrawTargetWebgl.

Differential Revision: https://phabricator.services.mozilla.com/D194353
2023-12-05 09:37:04 +00:00
Lee Salzman
25a6117f6d Bug 1829026 - Support using DrawTargetWebgl via remote canvas. r=aosmond
This mostly restructures DrawTargetWebgl to no longer rely upon ClientWebGLContext.
Instead, it must directly interact with WebGLContext which requires some noisy changes
of the GL rendering API used.

In addition, this restructures SharedContextWebgl so that it can be explicitly
allocated and further DrawTargetWebgls can be allocated that feed off of it.

This is all towards the ultimate goal of relying on remote canvas infrastructure for
remoting instead.

Differential Revision: https://phabricator.services.mozilla.com/D194351
2023-12-05 09:37:03 +00:00
Jamie Nicol
9b80930982 Bug 1859736 - Reuse WGR::PathBuilder instance in DrawTargetWebgl. r=gfx-reviewers,lsalzman
This avoids some expensive vector reallocations.

Differential Revision: https://phabricator.services.mozilla.com/D191283
2023-10-23 18:37:02 +00:00
Jamie Nicol
714a40e23b Bug 1857447 - Avoid redundant UniformData calls in DrawTargetWebgl. r=lsalzman
Calling ClientWebGLContext::UniformData() many times causes the
command buffer to fill up and we spend a fair amount of time flushing
the old buffer and allocating a new one, as well as serializing the
values.

The uniforms themselves are very small but they add up over a large
number of calls. We already have some code to track whether the
uniform values are dirty to avoid some redundancy, but a) this doesn't
cover every uniform, and b) we invalidate them all when switching
program.

This patch makes us track the value of every uniform that gets set
dynamically, and tracks the values separately for each program
used. It then uses these to avoid calling UniformData redundantly.

Differential Revision: https://phabricator.services.mozilla.com/D190269
2023-10-06 15:12:48 +00:00
Lee Salzman
db33f6ffeb Bug 1845309 - Use highp for texcoords in DrawTargetWebgl shaders. r=jrmuizel
This issue was originally reported by Asahi Lina, and they also proposed the original
version of these changes. I have reworked them a bit just to clean up how clip TCs
are passed down so that distance AA does not have to be highp.

Their original comment describing the issue were, in part:

"See DrawTargetWebgl::SharedContext::CreateShaders in dom/canvas/DrawTargetWebgl.cpp. The fragment shaders specify precision mediump float; and then don't use overriding precision qualifiers anywhere. This causes the texcoords to use fp16 precision on GPUs that support it, which is not sufficient for correct rendering."

"Note that this is a common mistake and the Mesa GPU driver we've been developing actually includes a heuristic that fixes the first instance of the problem (where the varying is used as a texcoord directly), but not the second one where there is an intermediate clamp(). It is that second one that is breaking Google Sheets."

Differential Revision: https://phabricator.services.mozilla.com/D187694
2023-09-07 18:10:24 +00:00
Lee Salzman
2617575ca5 Bug 1850727 - Only clear last clip mask when destroying clip mask. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D187366
2023-09-04 17:39:16 +00:00
Lee Salzman
45eb2f0103 Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-02 19:19:20 +00:00
Butkovits Atila
d0ff1ffd4d Backed out changeset 0d100cd406fa (bug 1850727) for causing reftest failures at 1850727-1.html. CLOSED TREE 2023-09-02 10:35:54 +03:00
Lee Salzman
284d25fdab Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-02 06:44:02 +00:00
Cristian Tuns
31ede82f9f Backed out changeset 843e65079be1 (bug 1850727) for causing build bustages in DrawTargetWebgl.cpp CLOSED TREE 2023-09-01 10:47:04 -04:00
Lee Salzman
63545125e1 Bug 1850727 - Ignore the clip mask when drawing a stroke mask. r=aosmond
The clip mask state was leaking into the drawing of the stroke mask texture.
This caused the stroke mask to be erroneously clipped out.

Differential Revision: https://phabricator.services.mozilla.com/D187254
2023-09-01 14:17:44 +00:00
sotaro
d0d700d9d2 Bug 1841380 - Limit the number of DrawTargetWebgls r=gfx-reviewers,lsalzman
A lot of DrawTargetWebgl allocations cause a lot of WebGL framebuffer allocations.
The allocations could cause out of resource problems.

Differential Revision: https://phabricator.services.mozilla.com/D183108
2023-07-11 02:13:56 +00:00
Lee Salzman
5d378f6973 Bug 1838136 - Improving path cache hashing. r=aosmond
Paths with the same shape but different locations can often hash to the same bucket.
Add a couple initial points from the path to the hash to distribute them better.
This results in a substantially improved hash distribution.

Differential Revision: https://phabricator.services.mozilla.com/D180849
2023-06-13 17:36:19 +00:00
Lee Salzman
dc8766500b Bug 1837728 - Allow alpha directly on stroked lines and rects. r=aosmond
For lines and rects, we don't have to worry about AARect generating overlapping
triangles when alpha is used. In these cases we can avoid drawing to a mask first
and avoid a performance cliff.

Differential Revision: https://phabricator.services.mozilla.com/D180525
2023-06-10 18:30:47 +00:00
Lee Salzman
6b34e45577 Bug 1837068 - Always advance path vertex offset. r=aosmond
Since we use unsynchronized BufferSubData, the wrong data can be used for some draw calls.
Ensure the path vertex offset is always advanced to avoid any races.

Differential Revision: https://phabricator.services.mozilla.com/D180436
2023-06-09 16:48:00 +00:00
Lee Salzman
5f60165581 Bug 1837068 - Support alpha strokes by rendering with AAStroke to a mask render target. r=aosmond
Since AAStroke can't deal with non-opaque stroked path, we first generate a normal opaque, anti-aliased
stroked path with AAStroke and render it to a cache texture bound to a render target. We can then later
just use that texture with alpha to support the initial alpha stroke request.

One caveat is that trying to both render to a texture bound to a framebuffer and also upload directly to
it with texSubImage2D can expose bugs in some OpenGL drivers that have different underlying representations
for data textures and for render target textures. To avoid this problem, we segregate the texture cache
pages based on whether they are used as render targets or for direct data uploads.

This ultimately all avoids the fallback of having to draw the alpha stroke in software with Skia and
then upload it to a texture. For stroked paths with large hollow areas, uploading a Skia surface whose
bounds contain the full stroke can cause a lot of uploading of unnecessary pixel data. This allows us
to only upload the triangle mesh for AAStroke and otherwise keep generation solely on the GPU.

Differential Revision: https://phabricator.services.mozilla.com/D180143
2023-06-07 19:47:04 +00:00
sotaro
8e5ae9706b Bug 1834342 - Flush pending commands in DrawTargetWebgl::~DrawTargetWebgl() r=gfx-reviewers,lsalzman
By flushing pending commands, release memory that is allocated for DrawTargetWebgl.

Differential Revision: https://phabricator.services.mozilla.com/D179335
2023-05-30 03:09:12 +00:00
Lee Salzman
7f70c02f53 Bug 1834079 - Move stroke fallback heuristic to after we attempt AA-Stroke. r=jrmuizel
We have a heuristic that falls back from stroking certain paths with acceleration because
both WGR and the texture cache can have slow output as the size of the path increases in
screen area. AA-Stroke tends to have better output for these paths, or at least, this heuristic
tends to have a detrimental effect on AA-Stroke usage and performance in important tests.
Lets move the heuristic to after we use AA-Stroke for now.

Differential Revision: https://phabricator.services.mozilla.com/D178549
2023-05-20 02:30:12 +00:00
Narcis Beleuzu
f608d53d3a Backed out changeset a3eb3df78c8b (bug 1834079) for xpc crashes 2023-05-20 03:43:50 +03:00
Lee Salzman
2d2fbf6a35 Bug 1834079 - Move stroke fallback heuristic to after we attempt AA-Stroke. r=jrmuizel
We have a heuristic that falls back from stroking certain paths with acceleration because
both WGR and the texture cache can have slow output as the size of the path increases in
screen area. AA-Stroke tends to have better output for these paths, or at least, this heuristic
tends to have a detrimental effect on AA-Stroke usage and performance in important tests.
Lets move the heuristic to after we use AA-Stroke for now.

Differential Revision: https://phabricator.services.mozilla.com/D178549
2023-05-19 21:08:45 +00:00
Narcis Beleuzu
c2b53cef14 Backed out changeset cdb59ad562ed (bug 1834079) for wr failure on devicepixel.html CLOSED TREE 2023-05-19 20:53:29 +03:00
Lee Salzman
47c9b349e6 Bug 1834079 - Move stroke fallback heuristic to after we attempt AA-Stroke. r=jrmuizel
We have a heuristic that falls back from stroking certain paths with acceleration because
both WGR and the texture cache can have slow output as the size of the path increases in
screen area. AA-Stroke tends to have better output for these paths, or at least, this heuristic
tends to have a detrimental effect on AA-Stroke usage and performance in important tests.
Lets move the heuristic to after we use AA-Stroke for now.

Differential Revision: https://phabricator.services.mozilla.com/D178549
2023-05-19 16:17:53 +00:00
Lee Salzman
5abbad6d84 Bug 1831414 - Ensure patterns get transformed when using WGR. r=aosmond,gfx-reviewers,ahale
Differential Revision: https://phabricator.services.mozilla.com/D177342
2023-05-06 21:02:57 +00:00
Lee Salzman
7437eceb36 Bug 1831391 - Only treat WebGL context as clear on new frame if its still valid. r=aosmond,gfx-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D177310
2023-05-05 20:01:47 +00:00
Lee Salzman
5833d07410 Bug 1825293 - Treat alpha textures as luminance for bitmap data. r=aosmond
For cases where bitmaps are compressed down to alpha textures, the underlying
assumption is that these were supposed to be treated as luminance data as well
in the shader, or rather, the alpha represents both the opacity and intensity.
We weren't properly swizzling in the shader to accomplish this. This fixes that.

Differential Revision: https://phabricator.services.mozilla.com/D176986
2023-05-03 14:05:26 +00:00
Lee Salzman
d2671b47c1 Bug 1829468 - Avoid uploading directly to framebuffer texture. r=aosmond
It seems that using a texture as a backing surface for a framebuffer
while simultaneously trying to use TexSubImage to upload to it aggravates
OpenGL driver bugs regarding the underlying representation of that
texture.

Given that I couldn't find an expedient way to preserve that optimized
upload path, instead we have to fallback to just uploading the sampling
rect of the surface to a transient texture that is then drawn via shader
to framebuffer.

Differential Revision: https://phabricator.services.mozilla.com/D176240
2023-04-25 13:58:47 +00:00
Lee Salzman
1801a6bc0f Bug 1828904 - Only accelerate with clear if rect is sufficiently large. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D176073
2023-04-20 19:19:15 +00:00