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

Side by Side Diff: include/gpu/GrConfig.h

Issue 22881005: Replace uses of GR_API by SK_API. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « gyp/gpu.gyp ('k') | include/gpu/GrContext.h » ('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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 #else 150 #else
151 #include GR_USER_CONFIG_FILE 151 #include GR_USER_CONFIG_FILE
152 #endif 152 #endif
153 153
154 154
155 /////////////////////////////////////////////////////////////////////////////// 155 ///////////////////////////////////////////////////////////////////////////////
156 /////////////////////////////////////////////////////////////////////////////// 156 ///////////////////////////////////////////////////////////////////////////////
157 // postconfig section: 157 // postconfig section:
158 // 158 //
159 159
160 // GR_IMPLEMENTATION should be define to 1 when building Gr and 0 when including
161 // it in another dependent build. The Gr makefile/ide-project should define this
162 // to 1.
163 #if !defined(GR_IMPLEMENTATION)
164 #define GR_IMPLEMENTATION 0
165 #endif
166
167 // If Gr is built as a shared library then GR_DLL should be defined to 1 (both
168 // when building Gr and when including its headers in dependent builds). Only
169 // currently supported minimally for Chrome's Win32 Multi-DLL build (TODO:
170 // correctly exort all of the public API correctly and support shared lib on
171 // other platforms).
172 #if !defined(GR_DLL)
173 #define GR_DLL 0
174 #endif
175
176 #if GR_DLL
177 #if GR_WIN32_BUILD
178 #if GR_IMPLEMENTATION
179 #define GR_API __declspec(dllexport)
180 #else
181 #define GR_API __declspec(dllimport)
182 #endif
183 #else
184 #define GR_API __attribute__((visibility("default")))
185 #endif
186 #else
187 #define GR_API
188 #endif
189
190 // By now we must have a GR_..._BUILD symbol set to 1, and a decision about 160 // By now we must have a GR_..._BUILD symbol set to 1, and a decision about
191 // debug -vs- release 161 // debug -vs- release
192 // 162 //
193 163
194 #define GrPrintf SkDebugf 164 #define GrPrintf SkDebugf
195 165
196 /** 166 /**
197 * GR_STRING makes a string of X where X is expanded before conversion to a str ing 167 * GR_STRING makes a string of X where X is expanded before conversion to a str ing
198 * if X itself contains macros. 168 * if X itself contains macros.
199 */ 169 */
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 #endif 347 #endif
378 #if GR_LINUX_BUILD 348 #if GR_LINUX_BUILD
379 // #pragma message GR_WARN("GR_LINUX_BUILD") 349 // #pragma message GR_WARN("GR_LINUX_BUILD")
380 #endif 350 #endif
381 #if GR_QNX_BUILD 351 #if GR_QNX_BUILD
382 // #pragma message GR_WARN("GR_QNX_BUILD") 352 // #pragma message GR_WARN("GR_QNX_BUILD")
383 #endif 353 #endif
384 #endif 354 #endif
385 355
386 #endif 356 #endif
OLDNEW
« no previous file with comments | « gyp/gpu.gyp ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698