Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: experimental/AndroidPathRenderer/cutils/compiler.h

Issue 1160863006: delete experimental path renderers (Closed) Base URL: https://skia.googlesource.com/skia.git@map-buffer-option
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef ANDROID_CUTILS_COMPILER_H
9 #define ANDROID_CUTILS_COMPILER_H
10
11 /*
12 * helps the compiler's optimizer predicting branches
13 */
14
15 #ifdef __cplusplus
16 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), true ))
17 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), false ))
18 #else
19 # define CC_LIKELY( exp ) (__builtin_expect( !!(exp), 1 ))
20 # define CC_UNLIKELY( exp ) (__builtin_expect( !!(exp), 0 ))
21 #endif
22
23 /**
24 * exports marked symbols
25 *
26 * if used on a C++ class declaration, this macro must be inserted
27 * after the "class" keyword. For instance:
28 *
29 * template <typename TYPE>
30 * class ANDROID_API Singleton { }
31 */
32
33 #define ANDROID_API __attribute__((visibility("default")))
34
35 #endif // ANDROID_CUTILS_COMPILER_H
OLDNEW
« no previous file with comments | « experimental/AndroidPathRenderer/Vertex.h ('k') | experimental/StrokePathRenderer/GrStrokePathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698