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

Side by Side Diff: tests/GrDrawTargetTest.cpp

Issue 1149773005: Add direct getter for GrCaps to GrContext. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init caps in the right place Created 5 years, 6 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/SkGr.cpp ('k') | tests/GrPorterDuffTest.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 2013 Google Inc. 3 * Copyright 2013 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 #if SK_SUPPORT_GPU 10 #if SK_SUPPORT_GPU
(...skipping 11 matching lines...) Expand all
22 22
23 DEF_GPUTEST(GrDrawTarget, reporter, factory) { 23 DEF_GPUTEST(GrDrawTarget, reporter, factory) {
24 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { 24 for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) {
25 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type); 25 GrContextFactory::GLContextType glType = static_cast<GrContextFactory::G LContextType>(type);
26 26
27 GrContext* grContext = factory->get(glType); 27 GrContext* grContext = factory->get(glType);
28 if (NULL == grContext) { 28 if (NULL == grContext) {
29 continue; 29 continue;
30 } 30 }
31 31
32 test_print(reporter, grContext->getGpu()->caps()); 32 test_print(reporter, grContext->caps());
33 } 33 }
34 } 34 }
35 35
36 #endif 36 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | tests/GrPorterDuffTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698