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

Side by Side Diff: src/gpu/gl/GrGLPath.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 2012 Google Inc. 3 * Copyright 2012 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 GrGLPath_DEFINED 9 #ifndef GrGLPath_DEFINED
10 #define GrGLPath_DEFINED 10 #define GrGLPath_DEFINED
(...skipping 23 matching lines...) Expand all
34 34
35 35
36 GrGLPath(GrGLGpu* gpu, const SkPath& path, const GrStrokeInfo& stroke); 36 GrGLPath(GrGLGpu* gpu, const SkPath& path, const GrStrokeInfo& stroke);
37 GrGLuint pathID() const { return fPathID; } 37 GrGLuint pathID() const { return fPathID; }
38 38
39 bool shouldStroke() const { return fShouldStroke; } 39 bool shouldStroke() const { return fShouldStroke; }
40 bool shouldFill() const { return fShouldFill; } 40 bool shouldFill() const { return fShouldFill; }
41 protected: 41 protected:
42 void onRelease() override; 42 void onRelease() override;
43 void onAbandon() override; 43 void onAbandon() override;
44 44 bool refsWrappedResources() const override { return false; }
45 private: 45 private:
46 // TODO: Figure out how to get an approximate size of the path in Gpu memory . 46 // TODO: Figure out how to get an approximate size of the path in Gpu memory .
47 size_t onGpuMemorySize() const override { return 100; } 47 size_t onGpuMemorySize() const override { return 100; }
48 48
49 GrGLuint fPathID; 49 GrGLuint fPathID;
50 bool fShouldStroke; 50 bool fShouldStroke;
51 bool fShouldFill; 51 bool fShouldFill;
52 52
53 typedef GrPath INHERITED; 53 typedef GrPath INHERITED;
54 }; 54 };
55 55
56 #endif 56 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698