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

Side by Side Diff: src/gpu/GrCoordTransform.cpp

Issue 1135113005: rename GrDrawTargetCaps.h to GrCaps.h and move to include (Closed) Base URL: https://skia.googlesource.com/skia.git@caps
Patch Set: rebase again Created 5 years, 7 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/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | 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 #include "GrCoordTransform.h" 8 #include "GrCoordTransform.h"
9 #include "GrCaps.h"
9 #include "GrContext.h" 10 #include "GrContext.h"
10 #include "GrDrawTargetCaps.h"
11 #include "GrGpu.h" 11 #include "GrGpu.h"
12 12
13 void GrCoordTransform::reset(GrCoordSet sourceCoords, const SkMatrix& m, const G rTexture* texture, 13 void GrCoordTransform::reset(GrCoordSet sourceCoords, const SkMatrix& m, const G rTexture* texture,
14 GrTextureParams::FilterMode filter) { 14 GrTextureParams::FilterMode filter) {
15 SkASSERT(texture); 15 SkASSERT(texture);
16 SkASSERT(!fInProcessor); 16 SkASSERT(!fInProcessor);
17 17
18 fSourceCoords = sourceCoords; 18 fSourceCoords = sourceCoords;
19 fMatrix = m; 19 fMatrix = m;
20 fReverseY = kBottomLeft_GrSurfaceOrigin == texture->origin(); 20 fReverseY = kBottomLeft_GrSurfaceOrigin == texture->origin();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 void GrCoordTransform::reset(GrCoordSet sourceCoords, 56 void GrCoordTransform::reset(GrCoordSet sourceCoords,
57 const SkMatrix& m, 57 const SkMatrix& m,
58 GrSLPrecision precision) { 58 GrSLPrecision precision) {
59 SkASSERT(!fInProcessor); 59 SkASSERT(!fInProcessor);
60 fSourceCoords = sourceCoords; 60 fSourceCoords = sourceCoords;
61 fMatrix = m; 61 fMatrix = m;
62 fReverseY = false; 62 fReverseY = false;
63 fPrecision = precision; 63 fPrecision = precision;
64 } 64 }
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698