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

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

Issue 1304403003: Merge 1304263003 to m45 (Closed) Base URL: https://skia.googlesource.com/skia.git@m45
Patch Set: Created 5 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/gl/GrGLGpu.h ('k') | no next file » | 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 8
9 #include "GrGLGpu.h" 9 #include "GrGLGpu.h"
10 #include "GrGLGLSL.h" 10 #include "GrGLGLSL.h"
(...skipping 2698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 return false; 2709 return false;
2710 } 2710 }
2711 2711
2712 // We'll do a CopyTexSubImage. Make the dst a plain old texture. 2712 // We'll do a CopyTexSubImage. Make the dst a plain old texture.
2713 desc->fConfig = src->config(); 2713 desc->fConfig = src->config();
2714 desc->fOrigin = src->origin(); 2714 desc->fOrigin = src->origin();
2715 desc->fFlags = kNone_GrSurfaceFlags; 2715 desc->fFlags = kNone_GrSurfaceFlags;
2716 return true; 2716 return true;
2717 } 2717 }
2718 2718
2719 bool GrGLGpu::copySurface(GrSurface* dst, 2719 bool GrGLGpu::onCopySurface(GrSurface* dst,
2720 GrSurface* src, 2720 GrSurface* src,
2721 const SkIRect& srcRect, 2721 const SkIRect& srcRect,
2722 const SkIPoint& dstPoint) { 2722 const SkIPoint& dstPoint) {
2723 if (src->asTexture() && dst->asRenderTarget()) { 2723 if (src->asTexture() && dst->asRenderTarget()) {
2724 this->copySurfaceAsDraw(dst, src, srcRect, dstPoint); 2724 this->copySurfaceAsDraw(dst, src, srcRect, dstPoint);
2725 return true; 2725 return true;
2726 } 2726 }
2727 2727
2728 if (can_copy_texsubimage(dst, src, this)) { 2728 if (can_copy_texsubimage(dst, src, this)) {
2729 this->copySurfaceAsCopyTexSubImage(dst, src, srcRect, dstPoint); 2729 this->copySurfaceAsCopyTexSubImage(dst, src, srcRect, dstPoint);
2730 return true; 2730 return true;
2731 } 2731 }
2732 2732
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3106 this->setVertexArrayID(gpu, 0); 3106 this->setVertexArrayID(gpu, 0);
3107 } 3107 }
3108 int attrCount = gpu->glCaps().maxVertexAttributes(); 3108 int attrCount = gpu->glCaps().maxVertexAttributes();
3109 if (fDefaultVertexArrayAttribState.count() != attrCount) { 3109 if (fDefaultVertexArrayAttribState.count() != attrCount) {
3110 fDefaultVertexArrayAttribState.resize(attrCount); 3110 fDefaultVertexArrayAttribState.resize(attrCount);
3111 } 3111 }
3112 attribState = &fDefaultVertexArrayAttribState; 3112 attribState = &fDefaultVertexArrayAttribState;
3113 } 3113 }
3114 return attribState; 3114 return attribState;
3115 } 3115 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698