87fa631969
Replace the old signature of onGetPixels (return bool) to return an enum (Result). Remove onGetPixelsEnum. Add a define for onGetPixelsEnum to onGetPixels. This is for staging in Chromium, where some implementations override onGetPixelsEnum. Add the define in skia_for_chromium_defines. Remove SK_SUPPORT_LEGACY_IMAGE_GENERATOR_RETURN, which is no longer needed by Chromium. BUG=skia:3257 Review URL: https://codereview.chromium.org/939113002
21 lines
543 B
Python
21 lines
543 B
Python
# Copyright 2014 Google Inc.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This file is included by chrome's skia/skia_common.gypi, and is intended to
|
|
# augment the skia flags that are set there.
|
|
|
|
{
|
|
'variables': {
|
|
|
|
# These flags will be defined in chromium
|
|
#
|
|
# If these become 'permanent', they should be moved into skia_common.gypi
|
|
#
|
|
'skia_for_chromium_defines': [
|
|
'SK_LEGACY_DRAWPICTURECALLBACK',
|
|
'SK_SUPPORT_LEGACY_GET_PIXELS_ENUM',
|
|
],
|
|
},
|
|
}
|