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

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

Issue 947443003: Move clip off of draw target (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: cleanup Created 5 years, 10 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 2010 Google Inc. 3 * Copyright 2010 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 SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE RRIDE; 128 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE RRIDE;
129 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; 129 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE;
130 130
131 /** PRIVATE / EXPERIMENTAL -- do not call */ 131 /** PRIVATE / EXPERIMENTAL -- do not call */
132 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 132 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
133 const SkMatrix*, const SkPaint*) SK_OV ERRIDE; 133 const SkMatrix*, const SkPaint*) SK_OV ERRIDE;
134 134
135 private: 135 private:
136 GrContext* fContext; 136 GrContext* fContext;
137 GrSkDrawProcs* fDrawProcs; 137 GrSkDrawProcs* fDrawProcs;
138 GrClipData fClipData; 138 SkAutoTUnref<const SkClipStack> fClipStack;
bsalomon 2015/02/23 19:31:30 alignment
139 SkIPoint fClipOrigin;
140 GrClip fClipData;
139 GrTextContext* fTextContext; 141 GrTextContext* fTextContext;
140 SkSurfaceProps fSurfaceProps; 142 SkSurfaceProps fSurfaceProps;
141 GrRenderTarget* fRenderTarget; 143 GrRenderTarget* fRenderTarget;
142 // remove when our clients don't rely on accessBitmap() 144 // remove when our clients don't rely on accessBitmap()
143 SkBitmap fLegacyBitmap; 145 SkBitmap fLegacyBitmap;
144 bool fNeedClear; 146 bool fNeedClear;
145 147
146 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); 148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags);
147 149
148 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; 150 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 203
202 static SkPicture::AccelData::Key ComputeAccelDataKey(); 204 static SkPicture::AccelData::Key ComputeAccelDataKey();
203 205
204 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
205 int sampleCount); 207 int sampleCount);
206 208
207 typedef SkBaseDevice INHERITED; 209 typedef SkBaseDevice INHERITED;
208 }; 210 };
209 211
210 #endif 212 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698