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

Side by Side Diff: src/core/SkRecorder.h

Issue 2146073003: Creating framework for drawShadowedPicture (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Missed error Created 4 years, 5 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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkRecorder_DEFINED 8 #ifndef SkRecorder_DEFINED
9 #define SkRecorder_DEFINED 9 #define SkRecorder_DEFINED
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const SkPaint&) override; 119 const SkPaint&) override;
120 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[], 120 void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const Sk Color[],
121 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override; 121 int count, SkXfermode::Mode, const SkRect* cull, const SkPa int*) override;
122 122
123 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 123 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
124 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override; 124 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) override;
125 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override; 125 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) override;
126 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override; 126 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) override;
127 127
128 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de; 128 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri de;
129 void onDrawShadowedPicture(const SkPicture*,
130 const SkMatrix*,
131 const SkPaint*) override;
129 void onDrawAnnotation(const SkRect&, const char[], SkData*) override; 132 void onDrawAnnotation(const SkRect&, const char[], SkData*) override;
130 133
131 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride; 134 sk_sp<SkSurface> onNewSurface(const SkImageInfo&, const SkSurfaceProps&) ove rride;
132 135
133 void flushMiniRecorder(); 136 void flushMiniRecorder();
134 137
135 private: 138 private:
136 template <typename T> 139 template <typename T>
137 T* copy(const T*); 140 T* copy(const T*);
138 141
139 template <typename T> 142 template <typename T>
140 T* copy(const T[], size_t count); 143 T* copy(const T[], size_t count);
141 144
142 SkIRect devBounds() const { 145 SkIRect devBounds() const {
143 SkIRect devBounds; 146 SkIRect devBounds;
144 this->getClipDeviceBounds(&devBounds); 147 this->getClipDeviceBounds(&devBounds);
145 return devBounds; 148 return devBounds;
146 } 149 }
147 150
148 DrawPictureMode fDrawPictureMode; 151 DrawPictureMode fDrawPictureMode;
149 size_t fApproxBytesUsedBySubPictures; 152 size_t fApproxBytesUsedBySubPictures;
150 SkRecord* fRecord; 153 SkRecord* fRecord;
151 SkAutoTDelete<SkDrawableList> fDrawableList; 154 SkAutoTDelete<SkDrawableList> fDrawableList;
152 155
153 SkMiniRecorder* fMiniRecorder; 156 SkMiniRecorder* fMiniRecorder;
154 }; 157 };
155 158
156 #endif//SkRecorder_DEFINED 159 #endif//SkRecorder_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698