Bug 1259248. Add a comment about mfbt/Range.h
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Wed, 30 Mar 2016 16:30:06 -0400
changeset 291097 165538409c04d972fd977d2ef26dcb1daa466983
parent 291096 bccb11375f2af838cda714d42fd8cef78f5c7bf1
child 291098 afb08f0036485e6840155eb3104327345670cd63
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1259248
milestone48.0a1
Bug 1259248. Add a comment about mfbt/Range.h
gfx/src/ArrayView.h
--- a/gfx/src/ArrayView.h
+++ b/gfx/src/ArrayView.h
@@ -3,16 +3,20 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef MOZILLA_GFX_ARRAY_VIEW_H_
 #define MOZILLA_GFX_ARRAY_VIEW_H_
 
 #include "nsTArray.h"
 
+/* This is similar to mfbt/Range.h but has implicit conversion
+ * from nsTArray and less bounds checking.
+ * For now, prefer Range over ArrayView */
+
 namespace mozilla {
 namespace gfx {
 
 template<typename T>
 class ArrayView
 {
     public:
         MOZ_IMPLICIT ArrayView(const nsTArray<T>& aData) :