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

Side by Side Diff: dm/DMGpuSupport.h

Issue 1852733002: Add GrContext::releaseAndAbandonContext() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix no-gpu build, add null check, add unit test" Created 4 years, 8 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 | « no previous file | dm/DMSrcSink.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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 kNative_GLContextType = 0, 77 kNative_GLContextType = 0,
78 kNull_GLContextType = 0; 78 kNull_GLContextType = 0;
79 static const int kGLContextTypeCnt = 1; 79 static const int kGLContextTypeCnt = 1;
80 enum GLContextOptions { 80 enum GLContextOptions {
81 kNone_GLContextOptions = 0, 81 kNone_GLContextOptions = 0,
82 kEnableNVPR_GLContextOptions = 0x1, 82 kEnableNVPR_GLContextOptions = 0x1,
83 }; 83 };
84 void destroyContexts() {} 84 void destroyContexts() {}
85 85
86 void abandonContexts() {} 86 void abandonContexts() {}
87
88 void releaseResourcesAndAbandonContexts() {}
87 }; 89 };
88 } // namespace sk_gpu_test 90 } // namespace sk_gpu_test
89 91
90 namespace DM { 92 namespace DM {
91 93
92 static const bool kGPUDisabled = true; 94 static const bool kGPUDisabled = true;
93 95
94 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*, 96 static inline SkSurface* NewGpuSurface(sk_gpu_test::GrContextFactory*,
95 sk_gpu_test::GrContextFactory::GLContextT ype, 97 sk_gpu_test::GrContextFactory::GLContextT ype,
96 sk_gpu_test::GrContextFactory::GLContextO ptions, 98 sk_gpu_test::GrContextFactory::GLContextO ptions,
97 SkImageInfo, 99 SkImageInfo,
98 int, 100 int,
99 bool) { 101 bool) {
100 return nullptr; 102 return nullptr;
101 } 103 }
102 104
103 } // namespace DM 105 } // namespace DM
104 106
105 #endif//SK_SUPPORT_GPU 107 #endif//SK_SUPPORT_GPU
106 108
107 #endif//DMGpuSupport_DEFINED 109 #endif//DMGpuSupport_DEFINED
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698