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

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

Issue 723743002: move to modify onCreateDevice virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/core/SkDevice.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 9
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // state for our render-target 136 // state for our render-target
137 GrRenderTarget* fRenderTarget; 137 GrRenderTarget* fRenderTarget;
138 uint32_t fFlags; 138 uint32_t fFlags;
139 139
140 // remove when our clients don't rely on accessBitmap() 140 // remove when our clients don't rely on accessBitmap()
141 SkBitmap fLegacyBitmap; 141 SkBitmap fLegacyBitmap;
142 142
143 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0); 143 SkGpuDevice(GrSurface*, const SkSurfaceProps&, unsigned flags = 0);
144 144
145 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; 145 virtual SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRID E;
146 146
147 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_ OVERRIDE; 147 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_ OVERRIDE;
148 148
149 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 149 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
150 150
151 // temporarily change the return to false, until we understand the issues wi th filters and persp 151 // temporarily change the return to false, until we understand the issues wi th filters and persp
152 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true; } 152 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true; }
153 153
154 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 154 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
155 // SkDraw's matrix and draw in device coords. 155 // SkDraw's matrix and draw in device coords.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 bool bicubic); 194 bool bicubic);
195 195
196 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 196 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
197 197
198 static SkPicture::AccelData::Key ComputeAccelDataKey(); 198 static SkPicture::AccelData::Key ComputeAccelDataKey();
199 199
200 typedef SkBaseDevice INHERITED; 200 typedef SkBaseDevice INHERITED;
201 }; 201 };
202 202
203 #endif 203 #endif
OLDNEW
« no previous file with comments | « src/core/SkDevice.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698