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

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

Issue 956083002: Revert of Pass clip to context (Closed) Base URL: https://skia.googlesource.com/skia.git@pass_down_rendertarget
Patch Set: Created 5 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
« no previous file with comments | « src/gpu/GrTextContext.cpp ('k') | src/gpu/SkGpuDevice.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 /* 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SkAutoTUnref<const SkClipStack> fClipStack; 138 SkAutoTUnref<const SkClipStack> fClipStack;
139 SkIPoint fClipOrigin; 139 SkIPoint fClipOrigin;
140 GrClip fClip; 140 GrClip fClipData;
141 GrTextContext* fTextContext; 141 GrTextContext* fTextContext;
142 SkSurfaceProps fSurfaceProps; 142 SkSurfaceProps fSurfaceProps;
143 GrRenderTarget* fRenderTarget; 143 GrRenderTarget* fRenderTarget;
144 // remove when our clients don't rely on accessBitmap() 144 // remove when our clients don't rely on accessBitmap()
145 SkBitmap fLegacyBitmap; 145 SkBitmap fLegacyBitmap;
146 bool fNeedClear; 146 bool fNeedClear;
147 147
148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags); 148 SkGpuDevice(GrRenderTarget*, const SkSurfaceProps*, unsigned flags);
149 149
150 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
203 203
204 static SkPicture::AccelData::Key ComputeAccelDataKey(); 204 static SkPicture::AccelData::Key ComputeAccelDataKey();
205 205
206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
207 int sampleCount); 207 int sampleCount);
208 208
209 typedef SkBaseDevice INHERITED; 209 typedef SkBaseDevice INHERITED;
210 }; 210 };
211 211
212 #endif 212 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTextContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698