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

Side by Side Diff: src/gpu/gl/GrGLPathRange.h

Issue 1862043002: Refactor to separate backend object lifecycle and GpuResource budget decision (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
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 GrGLPathRange_DEFINED 8 #ifndef GrGLPathRange_DEFINED
9 #define GrGLPathRange_DEFINED 9 #define GrGLPathRange_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 GrGLuint basePathID() const { return fBasePathID; } 42 GrGLuint basePathID() const { return fBasePathID; }
43 43
44 bool shouldStroke() const { return fShouldStroke; } 44 bool shouldStroke() const { return fShouldStroke; }
45 bool shouldFill() const { return fShouldFill; } 45 bool shouldFill() const { return fShouldFill; }
46 46
47 protected: 47 protected:
48 void onInitPath(int index, const SkPath&) const override; 48 void onInitPath(int index, const SkPath&) const override;
49 49
50 void onRelease() override; 50 void onRelease() override;
51 void onAbandon() override; 51 void onAbandon() override;
52
53 private: 52 private:
54 void init(); 53 void init();
55 size_t onGpuMemorySize() const override { return fGpuMemorySize; } 54 size_t onGpuMemorySize() const override { return fGpuMemorySize; }
56 55
57 const GrStrokeInfo fStroke; 56 const GrStrokeInfo fStroke;
58 GrGLuint fBasePathID; 57 GrGLuint fBasePathID;
59 mutable size_t fGpuMemorySize; 58 mutable size_t fGpuMemorySize;
60 bool fShouldStroke; 59 bool fShouldStroke;
61 bool fShouldFill; 60 bool fShouldFill;
62 61
63 typedef GrPathRange INHERITED; 62 typedef GrPathRange INHERITED;
64 }; 63 };
65 64
66 #endif 65 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698