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

Side by Side Diff: src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp

Issue 228893003: Move build guard to fix Android framework compile. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 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 | « no previous file | 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
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 #if SK_SUPPORT_GPU
9 #include "SkTwoPointConicalGradient_gpu.h" 8 #include "SkTwoPointConicalGradient_gpu.h"
10 #include "GrTBackendEffectFactory.h" 9 #include "GrTBackendEffectFactory.h"
11 10
12 #include "SkTwoPointConicalGradient.h" 11 #include "SkTwoPointConicalGradient.h"
13 12
13 #if SK_SUPPORT_GPU
14 // For brevity 14 // For brevity
15 typedef GrGLUniformManager::UniformHandle UniformHandle; 15 typedef GrGLUniformManager::UniformHandle UniformHandle;
16 16
17 ////////////////////////////////////////////////////////////////////////////// 17 //////////////////////////////////////////////////////////////////////////////
18 18
19 static void set_matrix_default_conical(const SkTwoPointConicalGradient& shader, 19 static void set_matrix_default_conical(const SkTwoPointConicalGradient& shader,
20 SkMatrix* invLMatrix) { 20 SkMatrix* invLMatrix) {
21 // Inverse of the current local matrix is passed in then, 21 // Inverse of the current local matrix is passed in then,
22 // translate to center1, rotate so center2 is on x axis. 22 // translate to center1, rotate so center2 is on x axis.
23 const SkPoint& center1 = shader.getStartCenter(); 23 const SkPoint& center1 = shader.getStartCenter();
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 SkMatrix matrix; 383 SkMatrix matrix;
384 if (!shader.getLocalMatrix().invert(&matrix)) { 384 if (!shader.getLocalMatrix().invert(&matrix)) {
385 return NULL; 385 return NULL;
386 } 386 }
387 387
388 set_matrix_default_conical(shader, &matrix); 388 set_matrix_default_conical(shader, &matrix);
389 return Default2PtConicalEffect::Create(ctx, shader, matrix, tm); 389 return Default2PtConicalEffect::Create(ctx, shader, matrix, tm);
390 } 390 }
391 391
392 #endif 392 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698