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

Side by Side Diff: tests/ImageIsOpaqueTest.cpp

Issue 1375293003: Enable image is opaque test seems to pass now (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 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 | 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 2014 Google Inc. 2 * Copyright 2014 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 "SkTypes.h" 8 #include "SkTypes.h"
9 #include "Test.h" 9 #include "Test.h"
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 80 }
81 81
82 SkImageInfo infoTransparent = SkImageInfo::MakeN32Premul(5, 5); 82 SkImageInfo infoTransparent = SkImageInfo::MakeN32Premul(5, 5);
83 SkAutoTUnref<SkSurface> surfaceTransparent( 83 SkAutoTUnref<SkSurface> surfaceTransparent(
84 SkSurface::NewRenderTarget(context,SkSurface::kNo_Budgeted, infoTran sparent)); 84 SkSurface::NewRenderTarget(context,SkSurface::kNo_Budgeted, infoTran sparent));
85 check_isopaque(reporter, surfaceTransparent, false); 85 check_isopaque(reporter, surfaceTransparent, false);
86 86
87 SkImageInfo infoOpaque = SkImageInfo::MakeN32(5, 5, kOpaque_SkAlphaType) ; 87 SkImageInfo infoOpaque = SkImageInfo::MakeN32(5, 5, kOpaque_SkAlphaType) ;
88 SkAutoTUnref<SkSurface> surfaceOpaque( 88 SkAutoTUnref<SkSurface> surfaceOpaque(
89 SkSurface::NewRenderTarget(context,SkSurface::kNo_Budgeted, infoOpaq ue)); 89 SkSurface::NewRenderTarget(context,SkSurface::kNo_Budgeted, infoOpaq ue));
90 #if 0 90
91 // this is failing right now : TODO fix me
92 check_isopaque(reporter, surfaceOpaque, true); 91 check_isopaque(reporter, surfaceOpaque, true);
93 #endif
94 } 92 }
95 } 93 }
96 94
97 #endif 95 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698