Closed Bug 916259 Opened 11 years ago Closed 11 years ago

Make it easier to dump layer tree from opt & mobile

Categories

(Core :: Graphics: Layers, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: BenWa, Assigned: BenWa)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch patch (obsolete) — Splinter Review
With this patch you can just uncomment #define MOZ_LAYERS_HAVE_LOG
Attachment #804630 - Flags: review?(jmuizelaar)
Comment on attachment 804630 [details] [diff] [review]
patch

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

::: gfx/layers/Layers.cpp
@@ +1225,1 @@
>  }

How about just:

if (aFile) {
fprintf(aFile, "%s\n", str.get());
} else {
printf_stderr("%s\n", str.get());
}

instead of the #ifdef ANDROID stuff?
Attachment #804630 - Flags: review?(jmuizelaar) → review-
Attached patch patchSplinter Review
Assignee: nobody → bgirard
Attachment #804630 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #805357 - Flags: review?(jmuizelaar)
Comment on attachment 805357 [details] [diff] [review]
patch

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

::: gfx/layers/Layers.cpp
@@ +1216,5 @@
>    PrintInfo(str, aPrefix);
> +  if (!aFile || aFile == stderr) {
> +    printf_stderr("%s\n", str.get());
> +  } else {
> +    fprintf(FILEOrDefault(aFile), "%s\n", str.get());

fprintf(aFile,

FILEOrDefault just checks aFile again
Attachment #805357 - Flags: review?(jmuizelaar) → review+
https://hg.mozilla.org/mozilla-central/rev/211d895e70d1
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: