# The following section is common to linux + derivatives and android
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos", "android"]',
{
+ 'cflags': [
+ '-fno-exceptions',
+ '-fstrict-aliasing',
+
+ '-Wall',
+ '-Wextra',
+ '-Winit-self',
+ '-Wpointer-arith',
+
+ '-Wno-unused-parameter',
+ '-Wno-c++11-extensions',
+ ],
+ 'cflags_cc': [
+ '-fno-rtti',
+ '-Wnon-virtual-dtor',
+ ],
'conditions': [
[ 'skia_warnings_as_errors', {
'cflags': [
'defines': [ 'NDEBUG' ],
},
},
- 'cflags': [
- '-Wall',
- '-Wextra',
- # suppressions below here were added for clang
- '-Wno-unused-parameter',
- '-Wno-c++11-extensions',
- ],
'conditions' : [
[ 'skia_shared_lib', {
'cflags': [
'-llog',
],
'cflags': [
- '-Wall',
- '-fno-exceptions',
- '-fstrict-aliasing',
'-fuse-ld=gold',
],
- 'cflags_cc': [
- '-fno-rtti',
- ],
'conditions': [
[ 'skia_shared_lib', {
'cflags': [
'cflags': [
'-w'
],
+ 'cflags_cc!': [
+ '-fno-rtti'
+ ],
'conditions': [
['skia_os == "linux"', {
'include_dirs': [
'../third_party/externals/expat/lib',
],
'cflags': [
- '-Wall',
- '-Wmissing-prototypes',
- '-Wstrict-prototypes',
+ '-w',
'-fexceptions',
'-DHAVE_EXPAT_CONFIG_H',
],
'../third_party/externals/gif',
],
'cflags': [
- '-Wno-format',
+ '-w',
'-DHAVE_CONFIG_H',
],
- 'cflags!': [
- '-Wall',
- ],
'direct_dependent_settings': {
'include_dirs': [
'../third_party/externals/gif',
'../third_party/externals/png',
],
'cflags': [
+ '-w',
'-fvisibility=hidden',
],
- 'cflags!': [
- '-Wall',
- ],
'link_settings': {
'libraries': [
'-lz',
class SkScriptCallBack {
public:
+ virtual ~SkScriptCallBack() { }
+
enum Type {
kBox,
kFunction,
fStop = (const char*)data + size;
}
+ virtual ~SkRBuffer() { }
+
/** Return the number of bytes that have been read from the beginning
of the data pointer.
*/
*/
class GrGLProgramEffectsBuilder {
public:
+ virtual ~GrGLProgramEffectsBuilder() { }
+
/**
* Emits the effect's shader code, and stores the necessary uniforms internally.
*/
class GrGLVertexProgramEffectsBuilder : public GrGLProgramEffectsBuilder {
public:
GrGLVertexProgramEffectsBuilder(GrGLFullShaderBuilder*, int reserveCount);
+ virtual ~GrGLVertexProgramEffectsBuilder() { }
virtual void emitEffect(const GrEffectStage&,
GrGLProgramEffects::EffectKey,
class GrGLTexGenProgramEffectsBuilder : public GrGLProgramEffectsBuilder {
public:
GrGLTexGenProgramEffectsBuilder(GrGLFragmentOnlyShaderBuilder*, int reserveCount);
+ virtual ~GrGLTexGenProgramEffectsBuilder() { }
virtual void emitEffect(const GrEffectStage&,
GrGLProgramEffects::EffectKey,