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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.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 | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 GrGLPathRendering_DEFINED 8 #ifndef GrGLPathRendering_DEFINED
9 #define GrGLPathRendering_DEFINED 9 #define GrGLPathRendering_DEFINED
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 // GrPathRendering implementations. 35 // GrPathRendering implementations.
36 GrPath* createPath(const SkPath&, const GrStrokeInfo&) override; 36 GrPath* createPath(const SkPath&, const GrStrokeInfo&) override;
37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, 37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*,
38 const GrStrokeInfo&) override; 38 const GrStrokeInfo&) override;
39 39
40 /* Called when the 3D context state is unknown. */ 40 /* Called when the 3D context state is unknown. */
41 void resetContext(); 41 void resetContext();
42 42
43 /** 43 /**
44 * Called when the GPU resources have been lost and need to be abandoned 44 * Called when the context either is about to be lost or is lost. Disconnect Type indicates
45 * (for example after a context loss). 45 * whether GPU resources should be cleaned up or abandoned when this is call ed.
46 */ 46 */
47 void abandonGpuResources(); 47 void disconnect(GrGpu::DisconnectType);
48 48
49 bool shouldBindFragmentInputs() const { 49 bool shouldBindFragmentInputs() const {
50 return fCaps.bindFragmentInputSupport; 50 return fCaps.bindFragmentInputSupport;
51 } 51 }
52 52
53 // Functions for "separable shader" texturing support. 53 // Functions for "separable shader" texturing support.
54 void setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location , 54 void setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location ,
55 GrGLenum genMode, GrGLint componen ts, 55 GrGLenum genMode, GrGLint componen ts,
56 const SkMatrix&); 56 const SkMatrix&);
57 57
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 GrGLGpu* gpu(); 122 GrGLGpu* gpu();
123 123
124 GrGLuint fFirstPreallocatedPathID; 124 GrGLuint fFirstPreallocatedPathID;
125 GrGLsizei fPreallocatedPathCount; 125 GrGLsizei fPreallocatedPathCount;
126 MatrixState fHWProjectionMatrixState; 126 MatrixState fHWProjectionMatrixState;
127 GrStencilSettings fHWPathStencilSettings; 127 GrStencilSettings fHWPathStencilSettings;
128 Caps fCaps; 128 Caps fCaps;
129 }; 129 };
130 130
131 #endif 131 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698