Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* | |
| 2 * Copyright 2015 Google Inc. | |
| 3 * | |
| 4 * Use of this source code is governed by a BSD-style license that can be | |
| 5 * found in the LICENSE file. | |
| 6 */ | |
| 7 | |
| 8 #ifndef GrYUVScoper_DEFINED | |
| 9 #define GrYUVScoper_DEFINED | |
| 10 | |
| 11 #include "GrTypes.h" | |
| 12 #include "SkImageInfo.h" | |
| 13 | |
| 14 class GrContext; | |
| 15 class GrTexture; | |
| 16 | |
| 17 class GrYUVProvider { | |
| 18 public: | |
| 19 virtual ~GrYUVProvider() {} | |
| 20 | |
| 21 GrTexture* refAsTexture(GrContext*, const GrSurfaceDesc&, bool useCache); | |
| 22 | |
| 23 virtual uint32_t onGetID() = 0; | |
| 24 virtual bool onGetYUVSizes(SkISize sizes[3]) = 0; | |
|
joshualitt
2015/09/04 15:16:13
constant kNumYUVPlanes?
| |
| 25 virtual bool onGetYUVPlanes(SkISize sizes[3], void* planes[3], size_t rowByt es[3], | |
| 26 SkYUVColorSpace*) = 0; | |
| 27 }; | |
| 28 | |
| 29 #endif | |
| OLD | NEW |