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

Side by Side Diff: src/gpu/effects/GrYUVtoRGBEffect.cpp

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 years, 5 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
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 #include "GrYUVtoRGBEffect.h" 8 #include "GrYUVtoRGBEffect.h"
9 9
10 #include "GrCoordTransform.h" 10 #include "GrCoordTransform.h"
11 #include "GrEffect.h" 11 #include "GrEffect.h"
12 #include "gl/GrGLEffect.h" 12 #include "gl/GrGLEffect.h"
13 #include "gl/GrGLShaderBuilder.h"
13 #include "GrTBackendEffectFactory.h" 14 #include "GrTBackendEffectFactory.h"
14 15
15 namespace { 16 namespace {
16 17
17 class YUVtoRGBEffect : public GrEffect { 18 class YUVtoRGBEffect : public GrEffect {
18 public: 19 public:
19 static GrEffect* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture) { 20 static GrEffect* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture) {
20 return SkNEW_ARGS(YUVtoRGBEffect, (yTexture, uTexture, vTexture)); 21 return SkNEW_ARGS(YUVtoRGBEffect, (yTexture, uTexture, vTexture));
21 } 22 }
22 23
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 typedef GrEffect INHERITED; 97 typedef GrEffect INHERITED;
97 }; 98 };
98 99
99 } 100 }
100 101
101 ////////////////////////////////////////////////////////////////////////////// 102 //////////////////////////////////////////////////////////////////////////////
102 103
103 GrEffect* GrYUVtoRGBEffect::Create(GrTexture* yTexture, GrTexture* uTexture, GrT exture* vTexture) { 104 GrEffect* GrYUVtoRGBEffect::Create(GrTexture* yTexture, GrTexture* uTexture, GrT exture* vTexture) {
104 return YUVtoRGBEffect::Create(yTexture, uTexture, vTexture); 105 return YUVtoRGBEffect::Create(yTexture, uTexture, vTexture);
105 } 106 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698