mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-02 11:59:58 +00:00
Add support to compile with Skia chrome/m64 branch
This commit is contained in:
parent
1898ce2886
commit
7b8d17b5cc
@ -1,5 +1,5 @@
|
||||
// SHE library
|
||||
// Copyright (C) 2012-2017 David Capello
|
||||
// Copyright (C) 2012-2018 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
// Read LICENSE.txt for more information.
|
||||
@ -16,11 +16,31 @@
|
||||
#include "SkBitmap.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkColorFilter.h"
|
||||
#include "SkColorPriv.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkRegion.h"
|
||||
#include "SkSurface.h"
|
||||
|
||||
#ifndef SK_BGRA_B32_SHIFT
|
||||
#ifdef SK_CPU_BENDIAN
|
||||
#define SK_BGRA_B32_SHIFT 24
|
||||
#define SK_BGRA_G32_SHIFT 16
|
||||
#define SK_BGRA_R32_SHIFT 8
|
||||
#define SK_BGRA_A32_SHIFT 0
|
||||
#else
|
||||
#define SK_BGRA_B32_SHIFT 0
|
||||
#define SK_BGRA_G32_SHIFT 8
|
||||
#define SK_BGRA_R32_SHIFT 16
|
||||
#define SK_BGRA_A32_SHIFT 24
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SK_A4444_SHIFT
|
||||
#define SK_R4444_SHIFT 12
|
||||
#define SK_G4444_SHIFT 8
|
||||
#define SK_B4444_SHIFT 4
|
||||
#define SK_A4444_SHIFT 0
|
||||
#endif
|
||||
|
||||
namespace she {
|
||||
|
||||
inline SkColor to_skia(gfx::Color c) {
|
||||
|
Loading…
Reference in New Issue
Block a user