Closed
Bug 1249640
Opened 7 years ago
Closed 7 years ago
Allow blocklisting of Canvas 2D acceleration
Categories
(Core :: Graphics: Canvas2D, defect)
Core
Graphics: Canvas2D
Tracking
()
RESOLVED
FIXED
mozilla47
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: milan, Assigned: milan)
References
Details
Attachments
(4 files, 3 obsolete files)
7.19 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
10.06 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
5.39 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
3.63 KB,
patch
|
milan
:
review+
|
Details | Diff | Splinter Review |
We don't have a way of doing that.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → milan
OS: Unspecified → All
Hardware: Unspecified → All
Assignee | ||
Comment 1•7 years ago
|
||
Since this is a new feature for blocklisting, and only releases after 41 can deal with features they don't understand, we should make sure this does not get used in the downloadable blocklist until 38 is off the books. Which is around 47, so we should resist the temptation to uplift this.
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8721501 -
Flags: review?(bgirard)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8721503 -
Flags: review?(gwright)
Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8721504 -
Flags: review?(mchang)
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8721505 -
Flags: review?(snorp)
Updated•7 years ago
|
Attachment #8721501 -
Flags: review?(bgirard) → review+
Comment on attachment 8721505 [details] [diff] [review] Bug1249640: Part 4. Android to use new blocking. r=snorp Review of attachment 8721505 [details] [diff] [review]: ----------------------------------------------------------------- ::: widget/android/GfxInfo.cpp @@ +188,3 @@ > > // the HARDWARE field isn't available on Android SDK < 8 > + if (mSDKVersion >= 8 && mozilla::AndroidBridge::Bridge()->GetStaticStringField("android/os/Build", "HARDWARE", mHardware)) { You can remove the SDK version check, we only run on 9+ these days, and soon (like this week?) it will be 15+
Attachment #8721505 -
Flags: review?(snorp) → review+
Comment 7•7 years ago
|
||
Comment on attachment 8721503 [details] [diff] [review] Part 2. gfxPlatform simplification when it comes to accelerated canvas, using the new blocking. r=gw280 Review of attachment 8721503 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/CanvasRenderingContext2D.cpp @@ +1205,2 @@ > { > if (!IsTargetValid() || mRenderingMode == aRenderingMode) { We can probably remove the check for the current rendering mode now. In any case, I don't think it makes sense to return false if we are already set to the right rendering mode. ::: gfx/thebes/gfxPlatform.h @@ +268,5 @@ > static bool AsyncPanZoomEnabled(); > > virtual void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) { > aObj.DefineProperty("AzureCanvasBackend", GetBackendName(mPreferredCanvasBackend)); > + aObj.DefineProperty("AzureSkiaAccelerated", UseAcceleratedCanvas()); Should we remove "Skia" here?
Attachment #8721503 -
Flags: review?(gwright) → review+
Updated•7 years ago
|
Attachment #8721504 -
Flags: review?(mchang) → review+
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to George Wright (:gw280) (:gwright) from comment #7) > Comment on attachment 8721503 [details] [diff] [review] > Part 2. gfxPlatform simplification when it comes to accelerated canvas, > using the new blocking. r=gw280 > > Review of attachment 8721503 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: dom/canvas/CanvasRenderingContext2D.cpp > @@ +1205,2 @@ > > { > > if (!IsTargetValid() || mRenderingMode == aRenderingMode) { > > We can probably remove the check for the current rendering mode now. In any > case, I don't think it makes sense to return false if we are already set to > the right rendering mode. Right - having it return false when we're already set to the right rendering mode, so that Demote*() methods don't end up calling RemoveDemotableContext(). And then that had me check before calling in this place, so that we don't emit gfxDebug() because we wouldn't actually be failing. So, the return value means "did the back end change", rather than "is the back end match the argument after return". > > ::: gfx/thebes/gfxPlatform.h > @@ +268,5 @@ > > static bool AsyncPanZoomEnabled(); > > > > virtual void GetAzureBackendInfo(mozilla::widget::InfoObject &aObj) { > > aObj.DefineProperty("AzureCanvasBackend", GetBackendName(mPreferredCanvasBackend)); > > + aObj.DefineProperty("AzureSkiaAccelerated", UseAcceleratedCanvas()); > > Should we remove "Skia" here? Good question. I'm not sure if we're using this as telemetry data somewhere, I'll check.
Assignee | ||
Comment 9•7 years ago
|
||
Attachment #8721503 -
Attachment is obsolete: true
Attachment #8722179 -
Flags: review+
Assignee | ||
Comment 10•7 years ago
|
||
Attachment #8721505 -
Attachment is obsolete: true
Attachment #8722180 -
Flags: review+
Assignee | ||
Comment 11•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=815c44428610 https://treeherder.mozilla.org/#/jobs?repo=try&revision=2037ced62148
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 12•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ca40a403e9d https://hg.mozilla.org/integration/mozilla-inbound/rev/303b759e886e https://hg.mozilla.org/integration/mozilla-inbound/rev/8151f4102646 https://hg.mozilla.org/integration/mozilla-inbound/rev/21222476d9d9
Keywords: checkin-needed
![]() |
||
Comment 13•7 years ago
|
||
Had to back these out for XPCshell failures on OS X: Backout: Push with failures: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=21222476d9d9 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=22279987&repo=mozilla-inbound 07:42:44 INFO - TEST-START | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_gfxBlacklist_Device.js 07:42:45 WARNING - TEST-UNEXPECTED-FAIL | xpcshell-unpack.ini:toolkit/mozapps/extensions/test/xpcshell/test_gfxBlacklist_Device.js | xpcshell return code: 0
Flags: needinfo?(milan)
Assignee | ||
Comment 14•7 years ago
|
||
Sorry, missed the red in the first try run from comment 11.
Flags: needinfo?(milan)
![]() |
||
Comment 15•7 years ago
|
||
> Backout: That's https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=80baf2babce0
Comment 16•7 years ago
|
||
Backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/bf721b828cce https://hg.mozilla.org/integration/mozilla-inbound/rev/0c971e22e81c https://hg.mozilla.org/integration/mozilla-inbound/rev/901a3b751970
Assignee | ||
Comment 17•7 years ago
|
||
The third patch blocked all of 10.6 for Canvas 2D, and the test happened to be setting 10.6 as the platform.
Assignee | ||
Comment 18•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8723134 -
Attachment is patch: true
Attachment #8723134 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8721504 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8723134 -
Attachment description: Bug 1249640: Part 3. Update Mac to use the new blocking. r=mchang → Part 3. Update Mac to use the new blocking. Carry r=mchang
Assignee | ||
Comment 19•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c87766aaa019
Assignee | ||
Comment 20•7 years ago
|
||
Resolved problems from comment 13, see the try run in comment 19.
Keywords: checkin-needed
Comment 21•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/67e2660b7478 https://hg.mozilla.org/integration/mozilla-inbound/rev/7bfbed61f70c https://hg.mozilla.org/integration/mozilla-inbound/rev/dd3df45a85da https://hg.mozilla.org/integration/mozilla-inbound/rev/1e882a4bf894
Keywords: checkin-needed
Comment 22•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/67e2660b7478 https://hg.mozilla.org/mozilla-central/rev/7bfbed61f70c https://hg.mozilla.org/mozilla-central/rev/dd3df45a85da https://hg.mozilla.org/mozilla-central/rev/1e882a4bf894
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•