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 "../private/SkAtomics.h" | 11 #include "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 29 matching lines...) Expand all Loading... |
51 SkAutoTUnref<GrTexture> fTexture; | 51 SkAutoTUnref<GrTexture> fTexture; |
52 const SkAlphaType fAlphaType; | 52 const SkAlphaType fAlphaType; |
53 const SkSurface::Budgeted fBudgeted; | 53 const SkSurface::Budgeted fBudgeted; |
54 mutable SkAtomic<bool> fAddedRasterVersionToCache; | 54 mutable SkAtomic<bool> fAddedRasterVersionToCache; |
55 | 55 |
56 | 56 |
57 typedef SkImage_Base INHERITED; | 57 typedef SkImage_Base INHERITED; |
58 }; | 58 }; |
59 | 59 |
60 #endif | 60 #endif |
OLD | NEW |