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

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

Issue 612063003: Applying post-commit comments from https://codereview.chromium.org/607993002/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/SkGrPixelRef.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 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 return; 1568 return;
1569 } 1569 }
1570 target->discard(renderTarget); 1570 target->discard(renderTarget);
1571 } 1571 }
1572 1572
1573 void GrContext::copyTexture(GrTexture* src, GrRenderTarget* dst, const SkIPoint* topLeft) { 1573 void GrContext::copyTexture(GrTexture* src, GrRenderTarget* dst, const SkIPoint* topLeft) {
1574 if (NULL == src || NULL == dst) { 1574 if (NULL == src || NULL == dst) {
1575 return; 1575 return;
1576 } 1576 }
1577 ASSERT_OWNED_RESOURCE(src); 1577 ASSERT_OWNED_RESOURCE(src);
1578 ASSERT_OWNED_RESOURCE(dst);
1578 1579
1579 SkIRect srcRect = SkIRect::MakeWH(dst->width(), dst->height()); 1580 SkIRect srcRect = SkIRect::MakeWH(dst->width(), dst->height());
1580 if (topLeft) { 1581 if (topLeft) {
1581 srcRect.offset(*topLeft); 1582 srcRect.offset(*topLeft);
1582 } 1583 }
1583 SkIRect srcBounds = SkIRect::MakeWH(src->width(), src->height()); 1584 SkIRect srcBounds = SkIRect::MakeWH(src->width(), src->height());
1584 if (!srcRect.intersect(srcBounds)) { 1585 if (!srcRect.intersect(srcBounds)) {
1585 return; 1586 return;
1586 } 1587 }
1587 1588
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 fResourceCache->printStats(); 1939 fResourceCache->printStats();
1939 } 1940 }
1940 #endif 1941 #endif
1941 1942
1942 #if GR_GPU_STATS 1943 #if GR_GPU_STATS
1943 const GrContext::GPUStats* GrContext::gpuStats() const { 1944 const GrContext::GPUStats* GrContext::gpuStats() const {
1944 return fGpu->gpuStats(); 1945 return fGpu->gpuStats();
1945 } 1946 }
1946 #endif 1947 #endif
1947 1948
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGrPixelRef.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698