Replace uses of GR_API by SK_API.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Aug 2013 12:23:06 +0000 (12:23 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Aug 2013 12:23:06 +0000 (12:23 +0000)
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

Makefile.old
gyp/common_conditions.gypi
gyp/gpu.gyp
include/gpu/GrConfig.h
include/gpu/GrContext.h
include/gpu/GrNoncopyable.h
include/gpu/gl/GrGLInterface.h
src/gpu/GrDefaultPathRenderer.h
src/gpu/GrPathRenderer.h

index c78c101..47029c4 100644 (file)
@@ -33,8 +33,6 @@ else
        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>"
index aa08fa8..a420537 100644 (file)
               '-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',
             ],
index df82cda..7e74bad 100644 (file)
         '<@(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': [
index df53fa2..d47ccb3 100644 (file)
@@ -157,36 +157,6 @@ typedef unsigned __int64 uint64_t;
 // 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
 //
index 414d2fa..ab38709 100644 (file)
@@ -39,7 +39,7 @@ class GrVertexBufferAllocPool;
 class GrSoftwarePathRenderer;
 class SkStrokeRec;
 
-class GR_API GrContext : public GrRefCnt {
+class SK_API GrContext : public GrRefCnt {
 public:
     SK_DECLARE_INST_COUNT(GrContext)
 
index 3d47170..d35f8d7 100644 (file)
@@ -6,8 +6,6 @@
  * found in the LICENSE file.
  */
 
-
-
 #ifndef GrNoncopyable_DEFINED
 #define GrNoncopyable_DEFINED
 
@@ -17,7 +15,7 @@
  *  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() {}
 
index 852b4bd..3b388f5 100644 (file)
@@ -110,7 +110,7 @@ typedef intptr_t GrGLInterfaceCallbackData;
  * 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 {
index e602fae..c60afcc 100644 (file)
@@ -15,7 +15,7 @@
  *  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);
 
index 27fbb3d..c49dd48 100644 (file)
@@ -6,7 +6,6 @@
  * found in the LICENSE file.
  */
 
-
 #ifndef GrPathRenderer_DEFINED
 #define GrPathRenderer_DEFINED
 
@@ -28,7 +27,7 @@ struct GrPoint;
  *  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)