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

Side by Side Diff: src/gpu/gl/GrGLGpu.cpp

Issue 2185063002: require semi at the end of SkASSERT and friends (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: refactor do while as macro Created 4 years, 4 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/batches/GrPLSPathRenderer.cpp ('k') | src/gpu/vk/GrVkMemory.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 2011 Google Inc. 2 * Copyright 2011 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 "GrGLGpu.h" 8 #include "GrGLGpu.h"
9 #include "GrGLBuffer.h" 9 #include "GrGLBuffer.h"
10 #include "GrGLGLSL.h" 10 #include "GrGLGLSL.h"
(...skipping 2751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2762 aglSwapBuffers(aglGetCurrentContext()); 2762 aglSwapBuffers(aglGetCurrentContext());
2763 #elif defined(SK_BUILD_FOR_WIN32) 2763 #elif defined(SK_BUILD_FOR_WIN32)
2764 SwapBuf(); 2764 SwapBuf();
2765 int set_a_break_pt_here = 9; 2765 int set_a_break_pt_here = 9;
2766 SwapBuf(); 2766 SwapBuf();
2767 #endif 2767 #endif
2768 #endif 2768 #endif
2769 } 2769 }
2770 2770
2771 void GrGLGpu::stampPLSSetupRect(const SkRect& bounds) { 2771 void GrGLGpu::stampPLSSetupRect(const SkRect& bounds) {
2772 SkASSERT(this->glCaps().glslCaps()->plsPathRenderingSupport()) 2772 SkASSERT(this->glCaps().glslCaps()->plsPathRenderingSupport());
2773 2773
2774 if (!fPLSSetupProgram.fProgram) { 2774 if (!fPLSSetupProgram.fProgram) {
2775 if (!this->createPLSSetupProgram()) { 2775 if (!this->createPLSSetupProgram()) {
2776 SkDebugf("Failed to create PLS setup program.\n"); 2776 SkDebugf("Failed to create PLS setup program.\n");
2777 return; 2777 return;
2778 } 2778 }
2779 } 2779 }
2780 2780
2781 GL_CALL(UseProgram(fPLSSetupProgram.fProgram)); 2781 GL_CALL(UseProgram(fPLSSetupProgram.fProgram));
2782 this->fHWVertexArrayState.setVertexArrayID(this, 0); 2782 this->fHWVertexArrayState.setVertexArrayID(this, 0);
(...skipping 1830 matching lines...) Expand 10 before | Expand all | Expand 10 after
4613 if (GR_GL_TEXTURE_EXTERNAL == glTexture->target() || 4613 if (GR_GL_TEXTURE_EXTERNAL == glTexture->target() ||
4614 GR_GL_TEXTURE_RECTANGLE == glTexture->target()) { 4614 GR_GL_TEXTURE_RECTANGLE == glTexture->target()) {
4615 copyParams->fFilter = GrTextureParams::kNone_FilterMode; 4615 copyParams->fFilter = GrTextureParams::kNone_FilterMode;
4616 copyParams->fWidth = texture->width(); 4616 copyParams->fWidth = texture->width();
4617 copyParams->fHeight = texture->height(); 4617 copyParams->fHeight = texture->height();
4618 return true; 4618 return true;
4619 } 4619 }
4620 } 4620 }
4621 return false; 4621 return false;
4622 } 4622 }
OLDNEW
« no previous file with comments | « src/gpu/batches/GrPLSPathRenderer.cpp ('k') | src/gpu/vk/GrVkMemory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698