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

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

Issue 1810323002: Cache render targets that render to wrapped textures Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 /* 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 #ifndef GrGLPathRange_DEFINED 9 #ifndef GrGLPathRange_DEFINED
10 #define GrGLPathRange_DEFINED 10 #define GrGLPathRange_DEFINED
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 GrGLuint basePathID() const { return fBasePathID; } 43 GrGLuint basePathID() const { return fBasePathID; }
44 44
45 bool shouldStroke() const { return fShouldStroke; } 45 bool shouldStroke() const { return fShouldStroke; }
46 bool shouldFill() const { return fShouldFill; } 46 bool shouldFill() const { return fShouldFill; }
47 47
48 protected: 48 protected:
49 void onInitPath(int index, const SkPath&) const override; 49 void onInitPath(int index, const SkPath&) const override;
50 50
51 void onRelease() override; 51 void onRelease() override;
52 void onAbandon() override; 52 void onAbandon() override;
53 53 bool refsWrappedResources() const override { return false; }
54 private: 54 private:
55 void init(); 55 void init();
56 size_t onGpuMemorySize() const override { return fGpuMemorySize; } 56 size_t onGpuMemorySize() const override { return fGpuMemorySize; }
57 57
58 const GrStrokeInfo fStroke; 58 const GrStrokeInfo fStroke;
59 GrGLuint fBasePathID; 59 GrGLuint fBasePathID;
60 mutable size_t fGpuMemorySize; 60 mutable size_t fGpuMemorySize;
61 bool fShouldStroke; 61 bool fShouldStroke;
62 bool fShouldFill; 62 bool fShouldFill;
63 63
64 typedef GrPathRange INHERITED; 64 typedef GrPathRange INHERITED;
65 }; 65 };
66 66
67 #endif 67 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698