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

Side by Side Diff: src/gpu/GrContextFactory.h

Issue 1702073002: Move SkTArray to include/private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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
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 #ifndef GrContextFactory_DEFINED 8 #ifndef GrContextFactory_DEFINED
9 #define GrContextFactory_DEFINED 9 #define GrContextFactory_DEFINED
10 10
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "GrContextOptions.h" 12 #include "GrContextOptions.h"
13 13
14 #include "gl/SkGLContext.h" 14 #include "gl/SkGLContext.h"
15 #include "SkTArray.h" 15 #include "../private/SkTArray.h"
bungeman-skia 2016/02/16 19:08:43 This one is probably the most iffy. This shouldn't
mtklein 2016/02/16 19:16:14 Sounds right to me.
bungeman-skia 2016/02/16 19:19:01 Done.
16 16
17 /** 17 /**
18 * This is a simple class that is useful in test apps that use different 18 * This is a simple class that is useful in test apps that use different
19 * GrContexts backed by different types of GL contexts. It manages creating the 19 * GrContexts backed by different types of GL contexts. It manages creating the
20 * GL context and a GrContext that uses it. The GL/Gr contexts persist until the 20 * GL context and a GrContext that uses it. The GL/Gr contexts persist until the
21 * factory is destroyed (though the caller can always grab a ref on the returned 21 * factory is destroyed (though the caller can always grab a ref on the returned
22 * Gr and GL contexts to make them outlive the factory). 22 * Gr and GL contexts to make them outlive the factory).
23 */ 23 */
24 class GrContextFactory : SkNoncopyable { 24 class GrContextFactory : SkNoncopyable {
25 public: 25 public:
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 GLContextType fType; 135 GLContextType fType;
136 GLContextOptions fOptions; 136 GLContextOptions fOptions;
137 SkGLContext* fGLContext; 137 SkGLContext* fGLContext;
138 GrContext* fGrContext; 138 GrContext* fGrContext;
139 }; 139 };
140 SkTArray<Context, true> fContexts; 140 SkTArray<Context, true> fContexts;
141 const GrContextOptions fGlobalOptions; 141 const GrContextOptions fGlobalOptions;
142 }; 142 };
143 143
144 #endif 144 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698