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

Side by Side Diff: tools/PictureRenderer.cpp

Issue 1306823003: skia: add ability to load command_buffer_gles2 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: and NULL->nullptr, just because. Created 5 years, 3 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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