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

Side by Side Diff: dm/DMGpuSupport.h

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 | « dm/DM.cpp ('k') | gyp/common.gypi » ('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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef DMGpuSupport_DEFINED 8 #ifndef DMGpuSupport_DEFINED
9 #define DMGpuSupport_DEFINED 9 #define DMGpuSupport_DEFINED
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 struct GrContextOptions {}; 58 struct GrContextOptions {};
59 59
60 class GrContextFactory { 60 class GrContextFactory {
61 public: 61 public:
62 GrContextFactory() {}; 62 GrContextFactory() {};
63 explicit GrContextFactory(const GrContextOptions&) {} 63 explicit GrContextFactory(const GrContextOptions&) {}
64 64
65 typedef int GLContextType; 65 typedef int GLContextType;
66 66
67 static const GLContextType kANGLE_GLContextType = 0, 67 static const GLContextType kANGLE_GLContextType = 0,
68 kDebug_GLContextType = 0, 68 kCommandBuffer_GLContextType = 0,
69 kMESA_GLContextType = 0, 69 kDebug_GLContextType = 0,
70 kNVPR_GLContextType = 0, 70 kMESA_GLContextType = 0,
71 kNative_GLContextType = 0, 71 kNVPR_GLContextType = 0,
72 kNull_GLContextType = 0; 72 kNative_GLContextType = 0,
73 kNull_GLContextType = 0;
73 static const int kGLContextTypeCnt = 1; 74 static const int kGLContextTypeCnt = 1;
74 void destroyContexts() {} 75 void destroyContexts() {}
75 76
76 void abandonContexts() {} 77 void abandonContexts() {}
77 }; 78 };
78 79
79 namespace DM { 80 namespace DM {
80 81
81 static const bool kGPUDisabled = true; 82 static const bool kGPUDisabled = true;
82 83
83 static inline SkSurface* NewGpuSurface(GrContextFactory*, 84 static inline SkSurface* NewGpuSurface(GrContextFactory*,
84 GrContextFactory::GLContextType, 85 GrContextFactory::GLContextType,
85 GrGLStandard, 86 GrGLStandard,
86 SkImageInfo, 87 SkImageInfo,
87 int, 88 int,
88 bool) { 89 bool) {
89 return nullptr; 90 return nullptr;
90 } 91 }
91 92
92 } // namespace DM 93 } // namespace DM
93 94
94 #endif//SK_SUPPORT_GPU 95 #endif//SK_SUPPORT_GPU
95 96
96 #endif//DMGpuSupport_DEFINED 97 #endif//DMGpuSupport_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | gyp/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698