Closed
Bug 776802
Opened 13 years ago
Closed 13 years ago
[Azure] gfxPlatform should be more precise in providing info about Azure backends
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: nrc, Assigned: nrc)
References
Details
Attachments
(1 file, 1 obsolete file)
11.02 KB,
patch
|
nrc
:
review+
|
Details | Diff | Splinter Review |
gfxPlatform::SupportsAzure should not return information about Azure backends. gfxPlatform::GetAzureBackendInfo should be removed. If needed we should add API for returning info about the preferred and fallback backends for canvas and content. But, in general any info should be taken from an actual DrawTarget, or there shouls be gfxPlatform methods to create a DrawTarget.
The theory here is that we can support multiple different Azure backends at one time, so the backend which will be used in some situation is not necessarily the one returned by the current gfxPlatform methods, so this info is misleading and possibly dangerous.
about:config should be changed to reflect the more complex nature of Azure backends, i.e., there should not be a single entry for 'Azure backend' but separate ones for canvas and content and canvas fallback.
Assignee | ||
Comment 1•13 years ago
|
||
Should probably check the various places that query the Azure prefs either directly (hopefully none) or via gfxInfo to make sure they are not assuming a single type of Azure backend.
Assignee | ||
Updated•13 years ago
|
Component: Graphics → GFX: Color Management
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → ncameron
Component: GFX: Color Management → Graphics
Assignee | ||
Comment 2•13 years ago
|
||
In the description, s/about:config/about:support
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #647051 -
Flags: review?(bas.schouten)
Comment 4•13 years ago
|
||
Comment on attachment 647051 [details] [diff] [review]
patch
Review of attachment 647051 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/thebes/gfxWindowsPlatform.h
@@ +243,5 @@
>
> protected:
> + virtual mozilla::gfx::BackendType GetContentBackend()
> + {
> + return UseAzureContentDrawing() && mD2DDevice ?
Probably better to check for D3D10 layers here.
Attachment #647051 -
Flags: review?(bas.schouten) → review+
Assignee | ||
Comment 5•13 years ago
|
||
(In reply to Bas Schouten (:bas) from comment #4)
> Comment on attachment 647051 [details] [diff] [review]
> patch
>
> Review of attachment 647051 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/thebes/gfxWindowsPlatform.h
> @@ +243,5 @@
> >
> > protected:
> > + virtual mozilla::gfx::BackendType GetContentBackend()
> > + {
> > + return UseAzureContentDrawing() && mD2DDevice ?
>
> Probably better to check for D3D10 layers here.
Do you mean instead of checking mD2DDevice?
Assignee | ||
Comment 6•13 years ago
|
||
(In reply to Bas Schouten (:bas) from comment #4)
> Comment on attachment 647051 [details] [diff] [review]
> patch
>
> Review of attachment 647051 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/thebes/gfxWindowsPlatform.h
> @@ +243,5 @@
> >
> > protected:
> > + virtual mozilla::gfx::BackendType GetContentBackend()
> > + {
> > + return UseAzureContentDrawing() && mD2DDevice ?
>
> Probably better to check for D3D10 layers here.
I'm not sure what this means - we might be using different layer managers in different places, but this is a function on a global gfxPlatform object, so I can't check which layer manager is being used, the best option is to take a guess at which backend will be used in general, and that will probably be D2D, if we can use D2D and it is pref'ed on, right?
Assignee | ||
Comment 7•13 years ago
|
||
changed d2d device check to use RenderMode, carrying r=bas
discussed Bas's comment on and this change on irc: no good way to check for D3D10 layers, don't need to be 100% precise here because info is only used for tests
Attachment #647051 -
Attachment is obsolete: true
Attachment #647325 -
Flags: review+
Assignee | ||
Comment 8•13 years ago
|
||
Assignee | ||
Comment 9•13 years ago
|
||
Comment 10•13 years ago
|
||
Unfortunately the bug number in the backout typoed, similar to bug 718849 comment 22 (was listed as bug 776803). I've commented in that bug pointing here, in case people come across it via hg blame.
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Comment 11•13 years ago
|
||
The landing was manually deselected in m-cMerge, but it ended up being marked still (will file a bug on m-cMerge). Reopening since was backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla17 → ---
Assignee | ||
Comment 12•13 years ago
|
||
Comment 13•13 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•