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

Side by Side Diff: tests/ClipBoundsTest.cpp

Issue 1486923004: Retract GrRenderTarget a bit (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/GrTessellatingPathRenderer.cpp ('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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 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 "Test.h" 9 #include "Test.h"
10 // This is a GR test 10 // This is a GR test
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // make sure that the SkClipStack is behaving itself 51 // make sure that the SkClipStack is behaving itself
52 REPORTER_ASSERT(reporter, screen == devStackBounds); 52 REPORTER_ASSERT(reporter, screen == devStackBounds);
53 REPORTER_ASSERT(reporter, isIntersectionOfRects); 53 REPORTER_ASSERT(reporter, isIntersectionOfRects);
54 54
55 // wrap the SkClipStack in a GrClip 55 // wrap the SkClipStack in a GrClip
56 GrClip clipData; 56 GrClip clipData;
57 clipData.setClipStack(&stack); 57 clipData.setClipStack(&stack);
58 58
59 SkIRect devGrClipBound; 59 SkIRect devGrClipBound;
60 clipData.getConservativeBounds(texture, 60 clipData.getConservativeBounds(texture->width(), texture->height(),
61 &devGrClipBound, 61 &devGrClipBound,
62 &isIntersectionOfRects); 62 &isIntersectionOfRects);
63 63
64 // make sure that GrClip is behaving itself 64 // make sure that GrClip is behaving itself
65 REPORTER_ASSERT(reporter, intScreen == devGrClipBound); 65 REPORTER_ASSERT(reporter, intScreen == devGrClipBound);
66 REPORTER_ASSERT(reporter, isIntersectionOfRects); 66 REPORTER_ASSERT(reporter, isIntersectionOfRects);
67 } 67 }
68 68
69 #endif 69 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrTessellatingPathRenderer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698