Closed Bug 1335123 Opened 7 years ago Closed 7 years ago

Clean up layers logging for WebRenderLayers

Categories

(Core :: Graphics: WebRender, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54

People

(Reporter: rhunt, Assigned: rhunt)

Details

Attachments

(1 file)

Attached patch logging.patchSplinter Review
It's a bit all over the place, and there are a few things we should be logging that we aren't.
Attachment #8831763 - Flags: review?(bugmail)
Comment on attachment 8831763 [details] [diff] [review]
logging.patch

Review of attachment 8831763 [details] [diff] [review]:
-----------------------------------------------------------------

Generally looks good, although I'm not sure if anybody is really using this logging anymore.

::: gfx/layers/wr/WebRenderLayersLogging.cpp
@@ +16,5 @@
> +AppendToString(std::stringstream& aStream, WrMixBlendMode aMixBlendMode,
> +               const char* pfx, const char* sfx)
> +{
> +  aStream << pfx;
> +  switch(aMixBlendMode) {

nit: add a space before '('. Ditto for WrTextureFilter

@@ +50,5 @@
> +    aStream << "WrMixBlendMode::Color"; break;
> +  case WrMixBlendMode::Luminosity:
> +    aStream << "WrMixBlendMode::Luminosity"; break;
> +
> +  default:

Can we use |Sentinel| instead of |default| here, so that the compiler will warn us if a new type is added to WrMixBlendMode and this code isn't updated? Ditto for WrTextureFilter.
Attachment #8831763 - Flags: review?(bugmail) → review+
Pushed by rhunt@eqrion.net:
https://hg.mozilla.org/projects/graphics/rev/12c5788aa7a0
Clean up layers logging for WebRenderLayers. r=kats
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: