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

Side by Side Diff: include/core/SkPostConfig.h

Issue 297803005: Revert of Modify sample buffer size for larger displays. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 #endif 61 #endif
62 62
63 #if !defined(SK_ATTRIBUTE) 63 #if !defined(SK_ATTRIBUTE)
64 # if defined(__clang__) || defined(__GNUC__) 64 # if defined(__clang__) || defined(__GNUC__)
65 # define SK_ATTRIBUTE(attr) __attribute__((attr)) 65 # define SK_ATTRIBUTE(attr) __attribute__((attr))
66 # else 66 # else
67 # define SK_ATTRIBUTE(attr) 67 # define SK_ATTRIBUTE(attr)
68 # endif 68 # endif
69 #endif 69 #endif
70 70
71 /**
72 * Used to align stack allocated variables/buffers.
73 * Different compilers have different ways to accomplish this.
74 */
75 #if defined(_MSC_VER)
76 # define SK_ALIGN(x) __declspec(align(x))
77 #else
78 # define SK_ALIGN(x) __attribute__((aligned(x)))
79 #endif
80
81 #if !defined(SK_SUPPORT_GPU) 71 #if !defined(SK_SUPPORT_GPU)
82 # define SK_SUPPORT_GPU 1 72 # define SK_SUPPORT_GPU 1
83 #endif 73 #endif
84 74
85 /** 75 /**
86 * The clang static analyzer likes to know that when the program is not 76 * The clang static analyzer likes to know that when the program is not
87 * expected to continue (crash, assertion failure, etc). It will notice that 77 * expected to continue (crash, assertion failure, etc). It will notice that
88 * some combination of parameters lead to a function call that does not return. 78 * some combination of parameters lead to a function call that does not return.
89 * It can then make appropriate assumptions about the parameters in code 79 * It can then make appropriate assumptions about the parameters in code
90 * executed only if the non-returning function was *not* called. 80 * executed only if the non-returning function was *not* called.
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 406
417 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 407 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB)
418 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 408 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB"
419 #elif defined(SK_GAMMA_SRGB) 409 #elif defined(SK_GAMMA_SRGB)
420 # define SK_GAMMA_EXPONENT (0.0f) 410 # define SK_GAMMA_EXPONENT (0.0f)
421 #elif !defined(SK_GAMMA_EXPONENT) 411 #elif !defined(SK_GAMMA_EXPONENT)
422 # define SK_GAMMA_EXPONENT (2.2f) 412 # define SK_GAMMA_EXPONENT (2.2f)
423 #endif 413 #endif
424 414
425 #endif // SkPostConfig_DEFINED 415 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | src/core/SkBitmapProcShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698