R=bsalomon@google.com, robertphillips@google.com
Author: tfarina@chromium.org
Review URL: https://chromiumcodereview.appspot.com/
22881005
git-svn-id: http://skia.googlecode.com/svn/trunk@10808
2bbb7eff-a529-9590-31e7-
b0007b416f81
DEFINES += -DSK_RELEASE -DGR_DEBUG=0
endif
-DEFINES += -DGR_IMPLEMENTATION=1
-
ifneq ($(SKIA_PDF_SUPPORT),false)
DEFINES += -DSK_SUPPORT_PDF
DEFINES += -DSK_ZLIB_INCLUDE="<zlib.h>"
'-fPIC',
],
'defines': [
- 'GR_DLL=1',
- 'GR_IMPLEMENTATION=1',
'SKIA_DLL',
'SKIA_IMPLEMENTATION=1',
],
'-fPIC',
],
'defines': [
- 'GR_DLL=1',
- 'GR_IMPLEMENTATION=1',
'SKIA_DLL',
'SKIA_IMPLEMENTATION=1',
],
'<@(skgpu_null_gl_sources)',
'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
],
- 'defines': [
- 'GR_IMPLEMENTATION=1',
- ],
'conditions': [
[ 'skia_nv_path_rendering', {
'defines': [
// postconfig section:
//
-// GR_IMPLEMENTATION should be define to 1 when building Gr and 0 when including
-// it in another dependent build. The Gr makefile/ide-project should define this
-// to 1.
-#if !defined(GR_IMPLEMENTATION)
- #define GR_IMPLEMENTATION 0
-#endif
-
-// If Gr is built as a shared library then GR_DLL should be defined to 1 (both
-// when building Gr and when including its headers in dependent builds). Only
-// currently supported minimally for Chrome's Win32 Multi-DLL build (TODO:
-// correctly exort all of the public API correctly and support shared lib on
-// other platforms).
-#if !defined(GR_DLL)
- #define GR_DLL 0
-#endif
-
-#if GR_DLL
- #if GR_WIN32_BUILD
- #if GR_IMPLEMENTATION
- #define GR_API __declspec(dllexport)
- #else
- #define GR_API __declspec(dllimport)
- #endif
- #else
- #define GR_API __attribute__((visibility("default")))
- #endif
-#else
- #define GR_API
-#endif
-
// By now we must have a GR_..._BUILD symbol set to 1, and a decision about
// debug -vs- release
//
class GrSoftwarePathRenderer;
class SkStrokeRec;
-class GR_API GrContext : public GrRefCnt {
+class SK_API GrContext : public GrRefCnt {
public:
SK_DECLARE_INST_COUNT(GrContext)
* found in the LICENSE file.
*/
-
-
#ifndef GrNoncopyable_DEFINED
#define GrNoncopyable_DEFINED
* Base for classes that want to disallow copying themselves. It makes its
* copy-constructor and assignment operators private (and unimplemented).
*/
-class GR_API GrNoncopyable {
+class SK_API GrNoncopyable {
public:
GrNoncopyable() {}
* non-NULL or GrContext creation will fail. This can be tested with the
* validate() method when the OpenGL context has been made current.
*/
-struct GR_API GrGLInterface : public GrRefCnt {
+struct SK_API GrGLInterface : public GrRefCnt {
private:
// simple wrapper class that exists only to initialize a pointer to NULL
template <typename FNPTR_TYPE> class GLPtr {
* Subclass that renders the path using the stencil buffer to resolve fill rules
* (e.g. winding, even-odd)
*/
-class GR_API GrDefaultPathRenderer : public GrPathRenderer {
+class SK_API GrDefaultPathRenderer : public GrPathRenderer {
public:
GrDefaultPathRenderer(bool separateStencilSupport, bool stencilWrapOpsSupport);
* found in the LICENSE file.
*/
-
#ifndef GrPathRenderer_DEFINED
#define GrPathRenderer_DEFINED
* stages before GrPaint::kTotalStages are reserved for setting up the draw (i.e., textures and
* filter masks).
*/
-class GR_API GrPathRenderer : public GrRefCnt {
+class SK_API GrPathRenderer : public GrRefCnt {
public:
SK_DECLARE_INST_COUNT(GrPathRenderer)