Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: src/gpu/GrYUVProvider.h

Issue 1315353006: refactor parts of SkGr.cpp for use by SkImages (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix header Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 GrYUVProvider_DEFINED
9 #define GrYUVProvider_DEFINED
10
11 #include "GrTypes.h"
12 #include "SkImageInfo.h"
13
14 class GrContext;
15 class GrTexture;
16
robertphillips 2015/09/08 13:34:35 // This exists b.c. ... ?
reed1 2015/09/08 14:57:22 Done.
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
25 enum {
26 kY_Index = 0,
27 kU_Index = 1,
28 kV_Index = 2,
29
30 kPlaneCount = 3
31 };
32
robertphillips 2015/09/08 13:34:35 // returns false when ... ?
reed1 2015/09/08 14:57:22 Done.
33 virtual bool onGetYUVSizes(SkISize sizes[kPlaneCount]) = 0;
34 virtual bool onGetYUVPlanes(SkISize sizes[kPlaneCount], void* planes[kPlaneC ount],
35 size_t rowBytes[kPlaneCount], SkYUVColorSpace*) = 0;
36 };
37
38 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698