aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTDArray.h
diff options
context:
space:
mode:
authorGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-14 18:49:19 +0000
committerGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-14 18:49:19 +0000
commit7af56bee17764a0c118c8856a035bb3d27766969 (patch)
tree403db31d9a78f6102707544e334361dd92ac99d7 /include/core/SkTDArray.h
parent50dd41017ad121b5f40f063d813ba517668fcfbc (diff)
Runtime configuration system for skia. This will allow developers to control settings at launch time without relying on compile-time flags or recompilation. It can be used to turn features on and off, as well as to control numeric quantities to 'tune' algorithms. Once I make sure it's working across all platforms I'll send out a quick tutorial on its use.
Review URL: https://codereview.appspot.com/7098051 git-svn-id: http://skia.googlecode.com/svn/trunk@7158 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkTDArray.h')
-rw-r--r--include/core/SkTDArray.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h
index eaf25c67ae..6f7a60e9ba 100644
--- a/include/core/SkTDArray.h
+++ b/include/core/SkTDArray.h
@@ -108,6 +108,10 @@ public:
SkASSERT((unsigned)index < fCount);
return fArray[index];
}
+
+ T& getAt(int index) const {
+ return (*this)[index];
+ }
void reset() {
if (fArray) {