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

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

Issue 778563002: Revert "Change clear() to respect the clip" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/GrLayerHoister.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 SkGpuDevice* cloneDevice(const SkSurfaceProps& props) { 59 SkGpuDevice* cloneDevice(const SkSurfaceProps& props) {
60 SkBaseDevice* dev = this->onCreateCompatibleDevice(CreateInfo(this->imag eInfo(), 60 SkBaseDevice* dev = this->onCreateCompatibleDevice(CreateInfo(this->imag eInfo(),
61 kGeneral_U sage, 61 kGeneral_U sage,
62 props.pixe lGeometry())); 62 props.pixe lGeometry()));
63 return static_cast<SkGpuDevice*>(dev); 63 return static_cast<SkGpuDevice*>(dev);
64 } 64 }
65 65
66 GrContext* context() const { return fContext; } 66 GrContext* context() const { return fContext; }
67 67
68 // set all pixels to 0
69 void clearAll();
70
71 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE; 68 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE;
72 69
73 virtual SkImageInfo imageInfo() const SK_OVERRIDE { 70 virtual SkImageInfo imageInfo() const SK_OVERRIDE {
74 return fRenderTarget ? fRenderTarget->surfacePriv().info() : SkImageInfo ::MakeUnknown(); 71 return fRenderTarget ? fRenderTarget->surfacePriv().info() : SkImageInfo ::MakeUnknown();
75 } 72 }
76 73
74 virtual void clear(SkColor color) SK_OVERRIDE;
77 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; 75 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
78 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 76 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
79 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; 77 const SkPoint[], const SkPaint& paint) SK_OVERRIDE;
80 virtual void drawRect(const SkDraw&, const SkRect& r, 78 virtual void drawRect(const SkDraw&, const SkRect& r,
81 const SkPaint& paint) SK_OVERRIDE; 79 const SkPaint& paint) SK_OVERRIDE;
82 virtual void drawRRect(const SkDraw&, const SkRRect& r, 80 virtual void drawRRect(const SkDraw&, const SkRRect& r,
83 const SkPaint& paint) SK_OVERRIDE; 81 const SkPaint& paint) SK_OVERRIDE;
84 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, 82 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer,
85 const SkRRect& inner, const SkPaint& paint) SK_OVERR IDE; 83 const SkRRect& inner, const SkPaint& paint) SK_OVERR IDE;
86 virtual void drawOval(const SkDraw&, const SkRect& oval, 84 virtual void drawOval(const SkDraw&, const SkRect& oval,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, 204 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*,
207 const SkImageFilter::Context&, 205 const SkImageFilter::Context&,
208 SkBitmap* result, SkIPoint* offset); 206 SkBitmap* result, SkIPoint* offset);
209 207
210 static SkPicture::AccelData::Key ComputeAccelDataKey(); 208 static SkPicture::AccelData::Key ComputeAccelDataKey();
211 209
212 typedef SkBaseDevice INHERITED; 210 typedef SkBaseDevice INHERITED;
213 }; 211 };
214 212
215 #endif 213 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrLayerHoister.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698