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

Side by Side Diff: tools/PictureRenderer.cpp

Issue 1151603005: Revert of Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: Created 5 years, 7 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 | « tools/PictureRenderer.h ('k') | tools/PictureRenderingFlags.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 "PictureRenderer.h" 8 #include "PictureRenderer.h"
9 #include "picture_utils.h" 9 #include "picture_utils.h"
10 #include "SamplePipeControllers.h" 10 #include "SamplePipeControllers.h"
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } 458 }
459 } 459 }
460 460
461 SkString SimplePictureRenderer::getConfigNameInternal() { 461 SkString SimplePictureRenderer::getConfigNameInternal() {
462 return SkString("simple"); 462 return SkString("simple");
463 } 463 }
464 464
465 //////////////////////////////////////////////////////////////////////////////// /////////////// 465 //////////////////////////////////////////////////////////////////////////////// ///////////////
466 466
467 #if SK_SUPPORT_GPU 467 #if SK_SUPPORT_GPU
468 TiledPictureRenderer::TiledPictureRenderer(const GrContextOptions& opts) 468 TiledPictureRenderer::TiledPictureRenderer(const GrContext::Options& opts)
469 : INHERITED(opts) 469 : INHERITED(opts)
470 , fTileWidth(kDefaultTileWidth) 470 , fTileWidth(kDefaultTileWidth)
471 #else 471 #else
472 TiledPictureRenderer::TiledPictureRenderer() 472 TiledPictureRenderer::TiledPictureRenderer()
473 : fTileWidth(kDefaultTileWidth) 473 : fTileWidth(kDefaultTileWidth)
474 #endif 474 #endif
475 , fTileHeight(kDefaultTileHeight) 475 , fTileHeight(kDefaultTileHeight)
476 , fTileWidthPercentage(0.0) 476 , fTileWidthPercentage(0.0)
477 , fTileHeightPercentage(0.0) 477 , fTileHeightPercentage(0.0)
478 , fTileMinPowerOf2Width(0) 478 , fTileMinPowerOf2Width(0)
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 case kNone_BBoxHierarchyType: 813 case kNone_BBoxHierarchyType:
814 return NULL; 814 return NULL;
815 case kRTree_BBoxHierarchyType: 815 case kRTree_BBoxHierarchyType:
816 return SkNEW(SkRTreeFactory); 816 return SkNEW(SkRTreeFactory);
817 } 817 }
818 SkASSERT(0); // invalid bbhType 818 SkASSERT(0); // invalid bbhType
819 return NULL; 819 return NULL;
820 } 820 }
821 821
822 } // namespace sk_tools 822 } // namespace sk_tools
OLDNEW
« no previous file with comments | « tools/PictureRenderer.h ('k') | tools/PictureRenderingFlags.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698