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

Side by Side Diff: src/gpu/glsl/GrGLSLProgramDataManager.cpp

Issue 1663833002: Make helper function on GrGLSLProgramDataManager non virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add file Created 4 years, 10 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
« no previous file with comments | « src/gpu/glsl/GrGLSLProgramDataManager.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 /*
3 * Copyright 2016 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #include "glsl/GrGLSLProgramDataManager.h"
10
11 #include "SkMatrix.h"
12
13 void GrGLSLProgramDataManager::setSkMatrix(UniformHandle u, const SkMatrix& matr ix) const {
14 float mt[] = {
15 matrix.get(SkMatrix::kMScaleX),
16 matrix.get(SkMatrix::kMSkewY),
17 matrix.get(SkMatrix::kMPersp0),
18 matrix.get(SkMatrix::kMSkewX),
19 matrix.get(SkMatrix::kMScaleY),
20 matrix.get(SkMatrix::kMPersp1),
21 matrix.get(SkMatrix::kMTransX),
22 matrix.get(SkMatrix::kMTransY),
23 matrix.get(SkMatrix::kMPersp2),
24 };
25 this->setMatrix3f(u, mt);
26 }
27
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLProgramDataManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698