Closed Bug 1182371 Opened 9 years ago Closed 9 years ago

Misc cleanup

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jgilbert, Assigned: jgilbert)

References

Details

Attachments

(5 files, 5 obsolete files)

32.39 KB, patch
jgilbert
: review+
Details | Diff | Splinter Review
3.50 KB, patch
jgilbert
: review+
Details | Diff | Splinter Review
3.18 KB, patch
jgilbert
: review+
Details | Diff | Splinter Review
97.87 KB, patch
jgilbert
: review+
Details | Diff | Splinter Review
15.14 KB, patch
u480271
: review+
Details | Diff | Splinter Review
      No description provided.
Attachment #8631950 - Flags: review?(dglastonbury)
Attachment #8631950 - Attachment is obsolete: true
Attachment #8631950 - Flags: review?(dglastonbury)
Attachment #8631951 - Flags: review?(dglastonbury)
Oops, this one looks big.
Attachment #8631953 - Flags: review?(dglastonbury)
Attachment #8631955 - Flags: review?(dglastonbury)
Attachment #8631956 - Flags: review?(dglastonbury)
Attachment #8631951 - Flags: review?(dglastonbury) → review+
Attachment #8631955 - Flags: review?(dglastonbury) → review+
Attachment #8631956 - Flags: review?(dglastonbury) → review+
Comment on attachment 8631953 [details] [diff] [review]
0012-webgl-Prune-many-includes-from-headers-remove-using-.patch

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

R+ conditional on nits and the header includes being sorted out in a follow-up patch.

::: dom/canvas/WebGL2ContextTransformFeedback.cpp
@@ +213,5 @@
>      if (!ValidateObject("getTransformFeedbackVarying: program", program))
>          return nullptr;
>  
> +    RefPtr<WebGLActiveInfo> ret = program->GetTransformFeedbackVarying(index);
> +    nsRefPtr<WebGLActiveInfo> ret2 = ret;

Ughhhhhhhh

::: dom/canvas/WebGLBuffer.h
@@ +8,4 @@
>  
>  #include "GLDefs.h"
>  #include "mozilla/LinkedList.h"
> +//#include "mozilla/MemoryReporting.h"

Please remove

@@ +14,2 @@
>  #include "WebGLObjectModel.h"
> +//#include "WebGLStrongTypes.h"

Please remove

::: dom/canvas/WebGLContext.cpp
@@ +6,5 @@
>  #include "WebGLContext.h"
>  
> +#include <queue>
> +
> +#include "../../js/xpconnect/wrappers/AccessCheck.h"

From IRC, I'm going to assume that this will be reverted.

@@ -1910,5 @@
>      size_t overshoot = value + multiple - 1;
>  
> -    if (true) {
> -        int value = 2;
> -        (void)value;

Yeah, OK.

::: dom/canvas/WebGLContextGL.cpp
@@ +57,1 @@
>  using namespace mozilla::dom;

If you've prefixed all the dom ns members, then should you remove these using directives?

::: dom/canvas/WebGLObjectModel.h
@@ +7,4 @@
>  #define WEBGLOBJECTMODEL_H_
>  
>  #include "nsCycleCollectionNoteChild.h"
> +//#include "nsICanvasRenderingContextInternal.h"

Remove

::: dom/canvas/WebGLQuery.h
@@ +6,4 @@
>  #ifndef WEBGL_QUERY_H_
>  #define WEBGL_QUERY_H_
>  
> +#include "../../mfbt/LinkedList.h"

Not this way.

@@ -6,4 @@
>  #ifndef WEBGL_QUERY_H_
>  #define WEBGL_QUERY_H_
>  
> -#include "mozilla/LinkedList.h"

It should be this way, right?

::: dom/canvas/WebGLTexture.h
@@ +10,4 @@
>  #include "mozilla/Assertions.h"
>  #include "mozilla/CheckedInt.h"
>  #include "mozilla/LinkedList.h"
> +//#include "nsAlgorithm.h"

remove

::: dom/canvas/moz.build
@@ +160,4 @@
>  CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
>  CXXFLAGS += CONFIG['TK_CFLAGS']
>  
> +use_static_analysis = False

What does this do?
Attachment #8631953 - Flags: review?(dglastonbury) → review+
r=kamidphish
Attachment #8631955 - Attachment is obsolete: true
Attachment #8633249 - Flags: review+
r=kamidphish
Attachment #8631951 - Attachment is obsolete: true
Attachment #8633250 - Flags: review+
r=kamidphish
Attachment #8631956 - Attachment is obsolete: true
Attachment #8633251 - Flags: review+
r=kamidphish
Attachment #8631953 - Attachment is obsolete: true
Attachment #8633252 - Flags: review+
Fixes the weird include format I was playing with, and fixes includes in WebGLFormats.cpp.
Attachment #8633253 - Flags: review?(dglastonbury)
Attachment #8633253 - Flags: review?(dglastonbury) → review+
https://hg.mozilla.org/mozilla-central/rev/2e3bce121f7c
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Depends on: 1200492
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: