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

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

Issue 2448593002: Remove SkAutoTUnref and SkAutoTDelete from public includes. (Closed)
Patch Set: And Vulcan. Created 4 years, 1 month 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/GrContext.cpp ('k') | src/gpu/GrGpu.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 * Copyright 2016 Google Inc. 2 * Copyright 2016 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 GrContextPriv_DEFINED 8 #ifndef GrContextPriv_DEFINED
9 #define GrContextPriv_DEFINED 9 #define GrContextPriv_DEFINED
10 10
11 #include "GrContext.h" 11 #include "GrContext.h"
12 12
13 /** Class that adds methods to GrContext that are only intended for use internal to Skia. 13 /** Class that adds methods to GrContext that are only intended for use internal to Skia.
14 This class is purely a privileged window into GrContext. It should never hav e additional 14 This class is purely a privileged window into GrContext. It should never hav e additional
15 data members or virtual methods. */ 15 data members or virtual methods. */
16 class GrContextPriv { 16 class GrContextPriv {
17 public: 17 public:
18 GrDrawingManager* drawingManager() { return fContext->fDrawingManager; } 18 GrDrawingManager* drawingManager() { return fContext->fDrawingManager.get(); }
19 19
20 // Create a drawContext that wraps an existing renderTarget 20 // Create a drawContext that wraps an existing renderTarget
21 sk_sp<GrDrawContext> makeWrappedDrawContext(sk_sp<GrRenderTarget> rt, 21 sk_sp<GrDrawContext> makeWrappedDrawContext(sk_sp<GrRenderTarget> rt,
22 sk_sp<SkColorSpace> colorSpace, 22 sk_sp<SkColorSpace> colorSpace,
23 const SkSurfaceProps* = nullptr) ; 23 const SkSurfaceProps* = nullptr) ;
24 24
25 sk_sp<GrDrawContext> makeBackendTextureDrawContext(const GrBackendTextureDes c& desc, 25 sk_sp<GrDrawContext> makeBackendTextureDrawContext(const GrBackendTextureDes c& desc,
26 sk_sp<SkColorSpace> color Space, 26 sk_sp<SkColorSpace> color Space,
27 const SkSurfaceProps* = n ullptr, 27 const SkSurfaceProps* = n ullptr,
28 GrWrapOwnership = kBorrow _GrWrapOwnership); 28 GrWrapOwnership = kBorrow _GrWrapOwnership);
(...skipping 21 matching lines...) Expand all
50 friend class GrContext; // to construct/copy this type. 50 friend class GrContext; // to construct/copy this type.
51 }; 51 };
52 52
53 inline GrContextPriv GrContext::contextPriv() { return GrContextPriv(this); } 53 inline GrContextPriv GrContext::contextPriv() { return GrContextPriv(this); }
54 54
55 inline const GrContextPriv GrContext::contextPriv () const { 55 inline const GrContextPriv GrContext::contextPriv () const {
56 return GrContextPriv(const_cast<GrContext*>(this)); 56 return GrContextPriv(const_cast<GrContext*>(this));
57 } 57 }
58 58
59 #endif 59 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698