| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |