OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkImage_Gpu_DEFINED | 8 #ifndef SkImage_Gpu_DEFINED |
9 #define SkImage_Gpu_DEFINED | 9 #define SkImage_Gpu_DEFINED |
10 | 10 |
11 #include "SkAtomics.h" | 11 #include "../private/SkAtomics.h" |
12 #include "GrTexture.h" | 12 #include "GrTexture.h" |
13 #include "GrGpuResourcePriv.h" | 13 #include "GrGpuResourcePriv.h" |
14 #include "SkBitmap.h" | 14 #include "SkBitmap.h" |
15 #include "SkImage_Base.h" | 15 #include "SkImage_Base.h" |
16 #include "SkImagePriv.h" | 16 #include "SkImagePriv.h" |
17 #include "SkSurface.h" | 17 #include "SkSurface.h" |
18 | 18 |
19 class SkImage_Gpu : public SkImage_Base { | 19 class SkImage_Gpu : public SkImage_Base { |
20 public: | 20 public: |
21 /** | 21 /** |
(...skipping 26 matching lines...) Expand all Loading... |
48 SkAutoTUnref<GrTexture> fTexture; | 48 SkAutoTUnref<GrTexture> fTexture; |
49 const SkAlphaType fAlphaType; | 49 const SkAlphaType fAlphaType; |
50 const SkSurface::Budgeted fBudgeted; | 50 const SkSurface::Budgeted fBudgeted; |
51 mutable SkAtomic<bool> fAddedRasterVersionToCache; | 51 mutable SkAtomic<bool> fAddedRasterVersionToCache; |
52 | 52 |
53 | 53 |
54 typedef SkImage_Base INHERITED; | 54 typedef SkImage_Base INHERITED; |
55 }; | 55 }; |
56 | 56 |
57 #endif | 57 #endif |
OLD | NEW |