Rename SkCodecTools.h to SkBitmapRegionDecoderPriv.h
Move BRD code to its own directory in tools. This
allows us to not need to expose the entire tools
directory in Android.
BUG=skia:
Review URL: https://codereview.chromium.org/
1417393004
#include "BitmapRegionDecoderBench.h"
#include "CodecBenchPriv.h"
#include "SkBitmap.h"
-#include "SkCodecTools.h"
+#include "SkBitmapRegionDecoderPriv.h"
#include "SkOSFile.h"
BitmapRegionDecoderBench::BitmapRegionDecoderBench(const char* baseName, SkData* encoded,
#include "OverwriteLine.h"
#include "ProcStats.h"
#include "SkBBHFactory.h"
+#include "SkBitmapRegionDecoderPriv.h"
#include "SkChecksum.h"
#include "SkCodec.h"
-#include "SkCodecTools.h"
#include "SkCommonFlags.h"
#include "SkFontMgr.h"
#include "SkForceLinking.h"
#include "DMSrcSink.h"
#include "SamplePipeControllers.h"
#include "SkAndroidCodec.h"
+#include "SkBitmapRegionDecoderPriv.h"
#include "SkCodec.h"
-#include "SkCodecTools.h"
#include "SkCommonFlags.h"
#include "SkData.h"
#include "SkDocument.h"
'../src/effects',
'../src/gpu',
'../src/utils',
- '../tools',
],
'sources': [ '<!@(python find.py ../bench "*.cpp")' ],
'../src/utils',
'../src/utils/debugger',
'../tests',
- '../tools',
],
'dependencies': [
'etc1.gyp:libetc1',
'target_name': 'bitmap_region_decoder',
'type': 'static_library',
'sources': [
- '../tools/SkBitmapRegionCanvas.cpp',
- '../tools/SkBitmapRegionCodec.cpp',
- '../tools/SkBitmapRegionDecoder.cpp',
+ '../tools/android/SkBitmapRegionCanvas.cpp',
+ '../tools/android/SkBitmapRegionCodec.cpp',
+ '../tools/android/SkBitmapRegionDecoder.cpp',
],
'include_dirs': [
'../include/private',
],
'direct_dependent_settings': {
'include_dirs': [
- '../tools',
+ '../tools/android',
],
},
},
*/
#include "SkBitmapRegionCanvas.h"
+#include "SkBitmapRegionDecoderPriv.h"
#include "SkCanvas.h"
#include "SkCodecPriv.h"
-#include "SkCodecTools.h"
SkBitmapRegionCanvas::SkBitmapRegionCanvas(SkCodec* decoder)
: INHERITED(decoder->getInfo().width(), decoder->getInfo().height())
* found in the LICENSE file.
*/
-#include "SkBitmapRegionCodec.h"
#include "SkAndroidCodec.h"
+#include "SkBitmapRegionCodec.h"
+#include "SkBitmapRegionDecoderPriv.h"
#include "SkCodecPriv.h"
-#include "SkCodecTools.h"
#include "SkPixelRef.h"
SkBitmapRegionCodec::SkBitmapRegionCodec(SkAndroidCodec* codec)
* found in the LICENSE file.
*/
-#ifndef SkCodecTools_DEFINED
-#define SkCodecTools_DEFINED
+#ifndef SkBitmapRegionDecoderPriv_DEFINED
+#define SkBitmapRegionDecoderPriv_DEFINED
inline float get_scale_from_sample_size(uint32_t sampleSize) {
return 1.0f / (float) sampleSize;
return SubsetType::kFullyInside_SubsetType;
}
-#endif // SkCodecTools_DEFINED
+#endif // SkBitmapRegionDecoderPriv_DEFINED