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

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

Issue 1631993002: Cleaning up trailing spaces and typos. (Closed) Base URL: https://skia.googlesource.com/skia.git@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 | « src/gpu/GrTest.cpp ('k') | src/gpu/GrTexturePriv.h » ('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 #include "GrContext.h" 9 #include "GrContext.h"
10 #include "GrCaps.h" 10 #include "GrCaps.h"
11 #include "GrGpu.h" 11 #include "GrGpu.h"
12 #include "GrResourceKey.h" 12 #include "GrResourceKey.h"
13 #include "GrRenderTarget.h" 13 #include "GrRenderTarget.h"
14 #include "GrRenderTargetPriv.h" 14 #include "GrRenderTargetPriv.h"
15 #include "GrTexture.h" 15 #include "GrTexture.h"
16 #include "GrTexturePriv.h" 16 #include "GrTexturePriv.h"
17 17
18 void GrTexture::dirtyMipMaps(bool mipMapsDirty) { 18 void GrTexture::dirtyMipMaps(bool mipMapsDirty) {
19 if (mipMapsDirty) { 19 if (mipMapsDirty) {
20 if (kValid_MipMapsStatus == fMipMapsStatus) { 20 if (kValid_MipMapsStatus == fMipMapsStatus) {
21 fMipMapsStatus = kAllocated_MipMapsStatus; 21 fMipMapsStatus = kAllocated_MipMapsStatus;
22 } 22 }
23 } else { 23 } else {
24 const bool sizeChanged = kNotAllocated_MipMapsStatus == fMipMapsStatus; 24 const bool sizeChanged = kNotAllocated_MipMapsStatus == fMipMapsStatus;
25 fMipMapsStatus = kValid_MipMapsStatus; 25 fMipMapsStatus = kValid_MipMapsStatus;
26 if (sizeChanged) { 26 if (sizeChanged) {
27 // This must not be called until after changing fMipMapsStatus. 27 // This must not be called until after changing fMipMapsStatus.
28 this->didChangeGpuMemorySize(); 28 this->didChangeGpuMemorySize();
29 } 29 }
30 } 30 }
31 } 31 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 6)); 104 SkASSERT(static_cast<int>(desc.fConfig) < (1 << 6));
105 SkASSERT(desc.fSampleCnt < (1 << 8)); 105 SkASSERT(desc.fSampleCnt < (1 << 8));
106 SkASSERT(flags < (1 << 10)); 106 SkASSERT(flags < (1 << 10));
107 SkASSERT(static_cast<int>(origin) < (1 << 8)); 107 SkASSERT(static_cast<int>(origin) < (1 << 8));
108 108
109 GrScratchKey::Builder builder(key, kType, 3); 109 GrScratchKey::Builder builder(key, kType, 3);
110 builder[0] = desc.fWidth; 110 builder[0] = desc.fWidth;
111 builder[1] = desc.fHeight; 111 builder[1] = desc.fHeight;
112 builder[2] = desc.fConfig | (desc.fSampleCnt << 6) | (flags << 14) | (origin << 24); 112 builder[2] = desc.fConfig | (desc.fSampleCnt << 6) | (flags << 14) | (origin << 24);
113 } 113 }
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/GrTexturePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698