OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |