Bug 780387 - Part f: Stop using PRBool & PRPackedBool; r=bsmedberg
authorMs2ger <ms2ger@gmail.com>
Thu, 09 Aug 2012 09:10:13 +0200
changeset 101931 5b0ac8d41b804bc3e854bde85a1afd52f75ef070
parent 101930 44fe712a01c88f3be3bf1d3ee8b1c74ff4062496
child 101932 cefda2b7296bdee2d34c4e5496e296b769dd685b
push id13237
push useremorley@mozilla.com
push dateThu, 09 Aug 2012 11:51:38 +0000
treeherdermozilla-inbound@f799dd180292 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbsmedberg
bugs780387
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 780387 - Part f: Stop using PRBool & PRPackedBool; r=bsmedberg
content/media/plugins/nsMediaPluginReader.h
gfx/layers/basic/BasicThebesLayer.h
layout/base/FrameLayerBuilder.cpp
--- a/content/media/plugins/nsMediaPluginReader.h
+++ b/content/media/plugins/nsMediaPluginReader.h
@@ -11,18 +11,18 @@
 #include "nsBuiltinDecoderReader.h"
 
 #include "MPAPI.h"
 
 class nsMediaPluginReader : public nsBuiltinDecoderReader
 {
   nsCString mType;
   MPAPI::Decoder *mPlugin;
-  PRBool mHasAudio;
-  PRBool mHasVideo;
+  bool mHasAudio;
+  bool mHasVideo;
   nsIntRect mPicture;
   nsIntSize mInitialFrame;
   int64_t mVideoSeekTimeUs;
   int64_t mAudioSeekTimeUs;
   VideoData *mLastVideoFrame;
 public:
   nsMediaPluginReader(nsBuiltinDecoder* aDecoder);
   ~nsMediaPluginReader();
--- a/gfx/layers/basic/BasicThebesLayer.h
+++ b/gfx/layers/basic/BasicThebesLayer.h
@@ -193,15 +193,15 @@ private:
   // When it goes out of scope on the stack, it unmaps whichever
   // buffers have been mapped (if any).
   AutoBufferTracker* mBufferTracker;
 
   bool mIsNewBuffer;
   OptionalThebesBuffer mROFrontBuffer;
   nsIntRegion mFrontUpdatedRegion;
   nsIntRegion mFrontValidRegion;
-  PRPackedBool mFrontAndBackBufferDiffer;
+  bool mFrontAndBackBufferDiffer;
 };
 
 }
 }
 
 #endif
--- a/layout/base/FrameLayerBuilder.cpp
+++ b/layout/base/FrameLayerBuilder.cpp
@@ -1009,17 +1009,17 @@ GetTranslationForThebesLayer(ThebesLayer
     NS_ERROR("ThebesLayers should have integer translations only");
     return nsIntPoint(0, 0);
   }
   return nsIntPoint(PRInt32(transform.x0), PRInt32(transform.y0));
 }
 
 static const double SUBPIXEL_OFFSET_EPSILON = 0.02;
 
-static PRBool
+static bool
 SubpixelOffsetFuzzyEqual(gfxPoint aV1, gfxPoint aV2)
 {
   return fabs(aV2.x - aV1.x) < SUBPIXEL_OFFSET_EPSILON &&
          fabs(aV2.y - aV1.y) < SUBPIXEL_OFFSET_EPSILON;
 }
 
 /**
  * This normally computes NSToIntRoundUp(aValue). However, if that would