raster_export.h 731 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef GPU_RASTER_EXPORT_H_
  5. #define GPU_RASTER_EXPORT_H_
  6. #if defined(COMPONENT_BUILD) && !defined(NACL_WIN64)
  7. #if defined(WIN32)
  8. #if defined(RASTER_IMPLEMENTATION)
  9. #define RASTER_EXPORT __declspec(dllexport)
  10. #else
  11. #define RASTER_EXPORT __declspec(dllimport)
  12. #endif // defined(RASTER_IMPLEMENTATION)
  13. #else // defined(WIN32)
  14. #if defined(RASTER_IMPLEMENTATION)
  15. #define RASTER_EXPORT __attribute__((visibility("default")))
  16. #else
  17. #define RASTER_EXPORT
  18. #endif
  19. #endif
  20. #else // defined(COMPONENT_BUILD)
  21. #define RASTER_EXPORT
  22. #endif
  23. #endif // GPU_RASTER_EXPORT_H_