Closed
Bug 1135883
Opened 10 years ago
Closed 10 years ago
Implement GetMaxTextureSize in the basic compositor
Categories
(Core :: Graphics: Layers, defect)
Core
Graphics: Layers
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: dvander, Assigned: dvander)
References
Details
Attachments
(3 files)
8.55 KB,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
870 bytes,
patch
|
mattwoodrow
:
review+
|
Details | Diff | Splinter Review |
6.25 KB,
patch
|
dvander
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Some crashtests with huge images fail when apz is enabled and tiling is disabled. Looks like the BasicCompositor allows any texture size.
Attachment #8568198 -
Flags: review?(matt.woodrow)
Assignee | ||
Comment 1•10 years ago
|
||
Small follow-up, check whether or not ComputeMinBuffer() succeeded in TextureClient.
Attachment #8568219 -
Flags: review?(matt.woodrow)
Comment 2•10 years ago
|
||
Comment on attachment 8568198 [details] [diff] [review]
patch
Review of attachment 8568198 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/2d/2D.h
@@ +1165,5 @@
>
> // This is a little hacky at the moment, but we want to have this data. Bug 1068613.
> static void SetLogForwarder(LogForwarder* aLogFwd);
>
> + static uint32_t GetMaxTextureSize(BackendType aType);
Call this one GetMaxSurfaceSize as well.
Attachment #8568198 -
Flags: review?(matt.woodrow) → review+
Updated•10 years ago
|
Attachment #8568219 -
Flags: review?(matt.woodrow) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 5•10 years ago
|
||
Comment on attachment 8568219 [details] [diff] [review]
follow-up
Review of attachment 8568219 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/client/TextureClient.cpp
@@ +744,5 @@
> return false;
> }
>
> uint32_t bufSize = ImageDataSerializer::ComputeMinBufferSize(aSize, mFormat);
> + if (!bufSize || !Allocate(bufSize)) {
Why did we need this if Allocate "appears to" handle bufSize == 0 case?
Updated•10 years ago
|
Blocks: CVE-2015-0805
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #5)
> Comment on attachment 8568219 [details] [diff] [review]
> follow-up
>
> Review of attachment 8568219 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/layers/client/TextureClient.cpp
> @@ +744,5 @@
> > return false;
> > }
> >
> > uint32_t bufSize = ImageDataSerializer::ComputeMinBufferSize(aSize, mFormat);
> > + if (!bufSize || !Allocate(bufSize)) {
>
> Why did we need this if Allocate "appears to" handle bufSize == 0 case?
Some of the implementations of Allocate() don't check for bufSize == 0, and some pass the allocation off into other functions that don't either. It looks like all the callers of ComputeMinBufferSize() check for 0 though.
Assignee | ||
Comment 7•10 years ago
|
||
Approval Request Comment
[Feature/regressing bug #]: OMTC
[User impact if declined]: If hardware acceleration is disabled due to a driver backlist, the browser can crash trying to render huge images.
[Describe test coverage new/current, TreeHerder]: This test was uncovered by running reftests with e10s and the basic compositor.
[Risks and why]: None, this simply adds a missing check that an allocation would fail.
[String/UUID change made/needed]:
Attachment #8574936 -
Flags: review+
Attachment #8574936 -
Flags: approval-mozilla-beta?
Attachment #8574936 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Attachment #8574936 -
Flags: approval-mozilla-beta?
Attachment #8574936 -
Flags: approval-mozilla-beta+
Attachment #8574936 -
Flags: approval-mozilla-aurora?
Attachment #8574936 -
Flags: approval-mozilla-aurora+
Updated•10 years ago
|
status-firefox37:
--- → affected
status-firefox38:
--- → affected
Comment 8•10 years ago
|
||
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
Updated•10 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•