diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-30 14:14:42 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-12-30 14:14:42 +0000 |
commit | a306d93cd73c3fc1d81479cbba98638f1e055385 (patch) | |
tree | 922c841e70a568b2e8a9b1231938c2a179edc327 /include/core/Sk64.h | |
parent | 4c9128664a4782ef40c5ccd856e87f9ed3b86172 (diff) |
remove Sk64 from public API, and start to remove usage internally
BUG=
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/113823003
git-svn-id: http://skia.googlecode.com/svn/trunk@12840 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/Sk64.h')
-rw-r--r-- | include/core/Sk64.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/core/Sk64.h b/include/core/Sk64.h index 009744938f..c12a97c8a1 100644 --- a/include/core/Sk64.h +++ b/include/core/Sk64.h @@ -1,4 +1,3 @@ - /* * Copyright 2006 The Android Open Source Project * @@ -6,7 +5,6 @@ * found in the LICENSE file. */ - #ifndef Sk64_DEFINED #define Sk64_DEFINED @@ -28,6 +26,11 @@ public: int64_t as64() const { return ((int64_t)fHi << 32) | fLo; } int64_t getLongLong() const { return this->as64(); } + void set64(int64_t value) { + fHi = (int32_t)(value >> 32); + fLo = (uint32_t)value; + } + /** Returns non-zero if the Sk64 can be represented as a signed 32 bit integer */ SkBool is32() const { return fHi == ((int32_t)fLo >> 31); } |