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

Side by Side Diff: tools/gpu/GrContextFactory.cpp

Issue 2055693003: Cleanup needed to use WindowContext for Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « src/gpu/vk/GrVkProgramDesc.h ('k') | tools/viewer/sk_app/WindowContext.h » ('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 /* 2 /*
3 * Copyright 2014 Google Inc. 3 * Copyright 2014 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrContextFactory.h" 9 #include "GrContextFactory.h"
10 #include "gl/GLTestContext.h" 10 #include "gl/GLTestContext.h"
11 11
12 #if SK_ANGLE 12 #if SK_ANGLE
13 #include "gl/angle/GLTestContext_angle.h" 13 #include "gl/angle/GLTestContext_angle.h"
14 #endif 14 #endif
15 #if SK_COMMAND_BUFFER 15 #if SK_COMMAND_BUFFER
16 #include "gl/command_buffer/GLTestContext_command_buffer.h" 16 #include "gl/command_buffer/GLTestContext_command_buffer.h"
17 #endif 17 #endif
18 #include "gl/debug/DebugGLTestContext.h" 18 #include "gl/debug/DebugGLTestContext.h"
19 #if SK_MESA 19 #if SK_MESA
20 #include "gl/mesa/GLTestContext_mesa.h" 20 #include "gl/mesa/GLTestContext_mesa.h"
21 #endif 21 #endif
22 #if SK_VULKAN 22 #ifdef SK_VULKAN
23 #include "vk/VkTestContext.h" 23 #include "vk/VkTestContext.h"
24 #endif 24 #endif
25 #include "gl/null/NullGLTestContext.h" 25 #include "gl/null/NullGLTestContext.h"
26 #include "gl/GrGLGpu.h" 26 #include "gl/GrGLGpu.h"
27 #include "GrCaps.h" 27 #include "GrCaps.h"
28 28
29 namespace sk_gpu_test { 29 namespace sk_gpu_test {
30 GrContextFactory::GrContextFactory() { } 30 GrContextFactory::GrContextFactory() { }
31 31
32 GrContextFactory::GrContextFactory(const GrContextOptions& opts) 32 GrContextFactory::GrContextFactory(const GrContextOptions& opts)
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 Context& context = fContexts.push_back(); 206 Context& context = fContexts.push_back();
207 context.fBackend = backend; 207 context.fBackend = backend;
208 context.fTestContext = testCtx.release(); 208 context.fTestContext = testCtx.release();
209 context.fGrContext = SkRef(grCtx.get()); 209 context.fGrContext = SkRef(grCtx.get());
210 context.fType = type; 210 context.fType = type;
211 context.fOptions = options; 211 context.fOptions = options;
212 context.fAbandoned = false; 212 context.fAbandoned = false;
213 return ContextInfo(context.fBackend, context.fTestContext, context.fGrContex t); 213 return ContextInfo(context.fBackend, context.fTestContext, context.fGrContex t);
214 } 214 }
215 } // namespace sk_gpu_test 215 } // namespace sk_gpu_test
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkProgramDesc.h ('k') | tools/viewer/sk_app/WindowContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698