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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 SkBitmap bitmap; | 132 SkBitmap bitmap; |
133 sk_tools::setup_bitmap(&bitmap, width, height); | 133 sk_tools::setup_bitmap(&bitmap, width, height); |
134 canvas.reset(new SkCanvas(bitmap)); | 134 canvas.reset(new SkCanvas(bitmap)); |
135 } | 135 } |
136 break; | 136 break; |
137 #if SK_SUPPORT_GPU | 137 #if SK_SUPPORT_GPU |
138 #if SK_ANGLE | 138 #if SK_ANGLE |
139 case kAngle_DeviceType: | 139 case kAngle_DeviceType: |
140 // fall through | 140 // fall through |
141 #endif | 141 #endif |
| 142 #if SK_COMMAND_BUFFER |
| 143 case kCommandBuffer_DeviceType: |
| 144 // fall through |
| 145 #endif |
142 #if SK_MESA | 146 #if SK_MESA |
143 case kMesa_DeviceType: | 147 case kMesa_DeviceType: |
144 // fall through | 148 // fall through |
145 #endif | 149 #endif |
146 case kGPU_DeviceType: | 150 case kGPU_DeviceType: |
147 case kNVPR_DeviceType: { | 151 case kNVPR_DeviceType: { |
148 SkAutoTUnref<GrSurface> target; | 152 SkAutoTUnref<GrSurface> target; |
149 if (fGrContext) { | 153 if (fGrContext) { |
150 // create a render target to back the device | 154 // create a render target to back the device |
151 GrSurfaceDesc desc; | 155 GrSurfaceDesc desc; |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 case kNone_BBoxHierarchyType: | 825 case kNone_BBoxHierarchyType: |
822 return nullptr; | 826 return nullptr; |
823 case kRTree_BBoxHierarchyType: | 827 case kRTree_BBoxHierarchyType: |
824 return new SkRTreeFactory; | 828 return new SkRTreeFactory; |
825 } | 829 } |
826 SkASSERT(0); // invalid bbhType | 830 SkASSERT(0); // invalid bbhType |
827 return nullptr; | 831 return nullptr; |
828 } | 832 } |
829 | 833 |
830 } // namespace sk_tools | 834 } // namespace sk_tools |
OLD | NEW |