Revert "Move headers used by headers in include/ to include/private."
authorMike Klein <mtklein@google.com>
Wed, 1 Jul 2015 20:35:59 +0000 (16:35 -0400)
committerMike Klein <mtklein@google.com>
Wed, 1 Jul 2015 20:35:59 +0000 (16:35 -0400)
This reverts commit 928e16565f3e69cd6661e9ad300ac17e3f33c0c8.

BUG=skia:

Review URL: https://codereview.chromium.org/1213093004.

31 files changed:
PRESUBMIT.py
gyp/SampleApp.gyp
gyp/bench.gypi
gyp/core.gyp
gyp/debugger.gyp
gyp/dm.gypi
gyp/effects.gyp
gyp/example.gyp
gyp/gpu.gyp
gyp/gputest.gyp
gyp/pdf.gyp
gyp/ports.gyp
gyp/svg.gyp
gyp/tools.gyp
gyp/utils.gyp
gyp/utils.gypi
gyp/views.gyp
gyp/visualbench.gyp
gyp/xps.gyp
include/core/SkPictureRecorder.h
include/gpu/GrBlend.h
include/gpu/gl/SkGLContext.h
include/views/SkOSWindow_Win.h
src/core/SkChecksum.h [moved from include/private/SkChecksum.h with 100% similarity]
src/core/SkFunction.h [moved from include/private/SkFunction.h with 100% similarity]
src/core/SkMiniRecorder.h [moved from include/private/SkMiniRecorder.h with 100% similarity]
src/core/SkPathPriv.h [moved from include/private/SkPathPriv.h with 100% similarity]
src/core/SkRecords.h [moved from include/private/SkRecords.h with 100% similarity]
src/core/SkTHash.h [moved from include/private/SkTHash.h with 100% similarity]
src/gpu/SkGpuFenceSync.h [moved from include/private/SkGpuFenceSync.h with 100% similarity]
src/utils/SkTLogic.h [moved from include/private/SkTLogic.h with 100% similarity]

index 04ed2e0..5599c31 100644 (file)
@@ -279,10 +279,8 @@ def _CheckLGTMsForPublicAPI(input_api, output_api):
     affected_file_path = affected_file.LocalPath()
     file_path, file_ext = os.path.splitext(affected_file_path)
     # We only care about files that end in .h and are under the top-level
-    # include dir, but not include/private.
-    if (file_ext == '.h' and
-        'include' == file_path.split(os.path.sep)[0] and
-        'private' not in file_path):
+    # include dir.
+    if file_ext == '.h' and 'include' == file_path.split(os.path.sep)[0]:
       requires_owner_check = True
 
   if not requires_owner_check:
@@ -330,12 +328,8 @@ def _CheckLGTMsForPublicAPI(input_api, output_api):
   if not lgtm_from_owner:
     results.append(
         output_api.PresubmitError(
-            "If this CL adds to or changes Skia's public API, you need an LGTM "
-            "from any of %s.  If this CL only removes from or doesn't change "
-            "Skia's public API, please add a short note to your CL saying so "
-            "and add one of those reviewers on a TBR= line.  If you don't know "
-            "this CL affects Skia's public API, please treat it like it does."
-            % str(PUBLIC_API_OWNERS)))
+            'Since the CL is editing public API, you must have an LGTM from '
+            'one of: %s' % str(PUBLIC_API_OWNERS)))
   return results
 
 
index d0c0876..7ccda93 100644 (file)
@@ -16,7 +16,6 @@
       'target_name': 'SampleApp',
       'type': 'executable',
       'include_dirs' : [
-        '../include/private',
         '../src/core',
         '../src/effects', #needed for BlurMask.h
         '../src/gpu', # needed by SkLua.cpp
index e102a97..a637202 100644 (file)
@@ -6,7 +6,6 @@
   'include_dirs': [
     '../bench/subset',
     '../bench',
-    '../include/private',
     '../src/core',
     '../src/effects',
     '../src/gpu',
index 2569a94..ebf8786 100644 (file)
@@ -23,7 +23,6 @@
         '../include/pathops',
         '../include/pipe',
         '../include/ports',
-        '../include/private',
         '../include/utils',
         '../include/images',
         '../src/core',
index 83bbbf0..e913390 100644 (file)
@@ -82,7 +82,6 @@
         '/Library/Frameworks',
       ],
       'include_dirs' : [
-        '../include/private',
         '../src/core',
         '../src/utils/debugger',
         '../debugger',      # To pull SkDebugger.h
index 9dd3228..03a5ad3 100644 (file)
@@ -7,7 +7,6 @@
   'include_dirs': [
     '../dm',
     '../gm',
-    '../include/private',
     '../src/core',
     '../src/effects',
     '../src/images',
index fa1bf53..154e567 100644 (file)
@@ -20,7 +20,6 @@
       ],
       'include_dirs': [
         '../include/effects',
-        '../include/private',
         '../src/effects',
         '../src/opts',
         '../src/core',
index 769e730..a01717e 100644 (file)
@@ -12,7 +12,6 @@
       'target_name': 'HelloWorld',
       'type': 'executable',
       'include_dirs' : [
-        '../include/private',
         '../include/gpu',
       ],
       'sources': [
index bfd9d38..e49f706 100644 (file)
@@ -94,7 +94,6 @@
       ],
       'include_dirs': [
         '../include/gpu',
-        '../include/private',
         '../src/core',
         '../src/gpu',
         '../src/image/',
index 6100363..868bc34 100644 (file)
@@ -14,7 +14,6 @@
       ],
       'include_dirs': [
         '../include/gpu',
-        '../include/private',
         '../include/utils',
         '../src/core',
         '../src/gpu',
index 7efbb5c..270cce5 100644 (file)
@@ -19,7 +19,6 @@
         'pdf.gypi',
       ],
       'include_dirs': [
-        '../include/private',
         '../src/core', # needed to get SkGlyphCache.h and SkTextFormatParams.h
         '../src/pdf',
         '../src/utils', # needed to get SkBitSet.h
index bfbd01c..a0cfbd6 100644 (file)
@@ -17,7 +17,6 @@
         '../include/effects',
         '../include/images',
         '../include/ports',
-        '../include/private',
         '../include/utils',
         '../include/utils/win',
         '../src/core',
index ddcbb93..df0c45c 100644 (file)
@@ -14,7 +14,6 @@
         'xml.gyp:*',
       ],
       'include_dirs': [
-        '../include/private',
         '../include/svg',
         '../src/core',
       ],
index 9b772be..855bfd7 100644 (file)
         '../tools/skpinfo.cpp',
       ],
       'include_dirs': [
-        '../include/private',
         '../src/core/',
       ],
       'dependencies': [
         '../tools/LazyDecodeBitmap.cpp',
       ],
       'include_dirs': [
-        '../include/private',
         '../src/core/',
         '../src/images',
         '../src/lazy',
       'target_name': 'filter',
       'type': 'executable',
       'include_dirs' : [
-        '../include/private',
         '../src/core',
         '../src/utils/debugger',
       ],
index 4299846..3171d36 100644 (file)
@@ -22,7 +22,6 @@
         '../include/images',
         '../include/pathops',
         '../include/pipe',
-        '../include/private',
         '../include/utils',
         '../include/utils/mac',
         '../include/utils/unix',
index 50f8ed6..22f8652 100644 (file)
         '<(skia_src_path)/utils/SkThreadUtils_win.cpp',
         '<(skia_src_path)/utils/SkThreadUtils_win.h',
         '<(skia_src_path)/utils/SkTFitsIn.h',
+        '<(skia_src_path)/utils/SkTLogic.h',
 
         #mac
         '<(skia_include_path)/utils/mac/SkCGUtils.h',
index 83ce377..e7abc54 100644 (file)
@@ -20,7 +20,6 @@
         'xml.gyp:xml',
       ],
       'include_dirs': [
-        '../include/private',
         '../include/views',
         '../include/views/unix',
         '../src/gpu',
index 4900826..4bf559a 100644 (file)
@@ -17,7 +17,6 @@
       'include_dirs' : [
         '../bench',
         '../include/gpu',
-        '../include/private',
         '../src/core',
         '../src/effects',
         '../src/images',
@@ -39,7 +38,7 @@
       'dependencies': [
         'etc1.gyp:libetc1',
         'flags.gyp:flags',
-        'gputest.gyp:skgputest',
+        'gputest.gyp:skgputest', 
         'skia_lib.gyp:skia_lib',
         'tools.gyp:proc_stats',
         'tools.gyp:sk_tool_utils',
@@ -58,7 +57,7 @@
               '-lGLESv2',
               '-lEGL',
             ],
-          },
+          },        
         }],
       ],
     },
index d69880a..454e065 100644 (file)
@@ -16,7 +16,6 @@
             'skia_lib.gyp:skia_lib',
           ],
           'include_dirs': [
-            '../include/private',
             '../include/device/xps',
             '../include/utils/win',
             '../src/core', # needed to get SkGlyphCache.h
index 2ac8388..811d02a 100644 (file)
@@ -8,7 +8,7 @@
 #ifndef SkPictureRecorder_DEFINED
 #define SkPictureRecorder_DEFINED
 
-#include "../private/SkMiniRecorder.h"
+#include "../../src/core/SkMiniRecorder.h"
 #include "SkBBHFactory.h"
 #include "SkPicture.h"
 #include "SkRefCnt.h"
index 52a0300..c8b931d 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include "GrTypes.h"
-#include "../private/SkTLogic.h"
+#include "../../src/utils/SkTLogic.h"
 
 #ifndef GrBlend_DEFINED
 #define GrBlend_DEFINED
index f9b3227..3d232e5 100644 (file)
@@ -9,7 +9,7 @@
 #define SkGLContext_DEFINED
 
 #include "GrGLInterface.h"
-#include "../../private/SkGpuFenceSync.h"
+#include "../../src/gpu/SkGpuFenceSync.h"
 
 /**
  * Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO.
@@ -18,7 +18,7 @@
 
 class SK_API SkGLContext : public SkRefCnt {
 public:
-
+    
 
     ~SkGLContext() override;
 
index c917438..e7bba18 100644 (file)
@@ -11,8 +11,8 @@
 #define SkOSWindow_Win_DEFINED
 
 #include "SkWindow.h"
-#include "../private/SkFunction.h"
-#include "../private/SkTHash.h"
+#include "../../src/core/SkFunction.h"
+#include "../../src/core/SkTHash.h"
 
 #if SK_ANGLE
 #include "EGL/egl.h"
similarity index 100%
rename from include/private/SkTHash.h
rename to src/core/SkTHash.h