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

Side by Side Diff: include/gpu/GrTexture.h

Issue 1715063002: Simplify calculations in AADistanceFieldPathBatch::writePathVertices. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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 | « no previous file | src/gpu/GrTexture.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef GrTexture_DEFINED 9 #ifndef GrTexture_DEFINED
10 #define GrTexture_DEFINED 10 #define GrTexture_DEFINED
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 size_t onGpuMemorySize() const override; 53 size_t onGpuMemorySize() const override;
54 void dirtyMipMaps(bool mipMapsDirty); 54 void dirtyMipMaps(bool mipMapsDirty);
55 55
56 enum MipMapsStatus { 56 enum MipMapsStatus {
57 kNotAllocated_MipMapsStatus, 57 kNotAllocated_MipMapsStatus,
58 kAllocated_MipMapsStatus, 58 kAllocated_MipMapsStatus,
59 kValid_MipMapsStatus 59 kValid_MipMapsStatus
60 }; 60 };
61 61
62 MipMapsStatus fMipMapsStatus; 62 MipMapsStatus fMipMapsStatus;
63 // These two shift a fixed-point value into normalized coordinates
64 // for this texture if the texture is power of two sized.
65 int fShiftFixedX;
66 int fShiftFixedY;
67 63
68 friend class GrTexturePriv; 64 friend class GrTexturePriv;
69 65
70 typedef GrSurface INHERITED; 66 typedef GrSurface INHERITED;
71 }; 67 };
72 68
73 #endif 69 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698