diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:21:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-11 21:51:42 +0300 |
commit | 35d742677a59b4340b24f703bad666f3700b14b5 (patch) | |
tree | 4fba5450036a21c94064706258c5326252fda73a /src/render/graphicsdef.hpp | |
parent | 2b60803357db480eb5214a758a54363d4172987e (diff) | |
download | mv-35d742677a59b4340b24f703bad666f3700b14b5.tar.gz mv-35d742677a59b4340b24f703bad666f3700b14b5.tar.bz2 mv-35d742677a59b4340b24f703bad666f3700b14b5.tar.xz mv-35d742677a59b4340b24f703bad666f3700b14b5.zip |
Use inline attribute in some critial performance functions.
Diffstat (limited to 'src/render/graphicsdef.hpp')
-rw-r--r-- | src/render/graphicsdef.hpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/render/graphicsdef.hpp b/src/render/graphicsdef.hpp index 0b077d373..e7b775ff0 100644 --- a/src/render/graphicsdef.hpp +++ b/src/render/graphicsdef.hpp @@ -52,7 +52,7 @@ public: void inline drawPatternInline(const Image *restrict const image, const int x, const int y, - const int w, const int h) restrict2; + const int w, const int h) restrict2 A_INLINE; void drawRescaledPattern(const Image *restrict const image, const int x, const int y, @@ -128,16 +128,21 @@ private: void inline calcImageRect(ImageVertexes *restrict const vert, int x, int y, int w, int h, - const ImageRect &restrict imgRect) restrict2; + const ImageRect &restrict imgRect) + restrict2 A_INLINE; void inline calcPatternInline(ImageVertexes *restrict const vert, const Image *restrict const image, - const int x, const int y, - const int w, const int h) const restrict2; + const int x, + const int y, + const int w, + const int h) const restrict2 A_INLINE; void inline calcTileVertexesInline(ImageVertexes *restrict const vert, const Image *restrict const image, - int x, int y) const restrict2; + int x, + int y) const restrict2 A_INLINE; void inline drawImageInline(const Image *restrict const image, - int dstX, int dstY) restrict2; + int dstX, + int dstY) restrict2 A_INLINE; |