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

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

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add new file Created 6 years, 3 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/core/SkPictureRecord.cpp ('k') | src/core/SkSurfacePriv.h » ('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 * 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 109 void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
110 void onPopCull() SK_OVERRIDE; 110 void onPopCull() SK_OVERRIDE;
111 111
112 void beginCommentGroup(const char*) SK_OVERRIDE; 112 void beginCommentGroup(const char*) SK_OVERRIDE;
113 void addComment(const char*, const char*) SK_OVERRIDE; 113 void addComment(const char*, const char*) SK_OVERRIDE;
114 void endCommentGroup() SK_OVERRIDE; 114 void endCommentGroup() SK_OVERRIDE;
115 void drawData(const void*, size_t) SK_OVERRIDE; 115 void drawData(const void*, size_t) SK_OVERRIDE;
116 116
117 bool isDrawingToLayer() const SK_OVERRIDE; 117 bool isDrawingToLayer() const SK_OVERRIDE;
118 SkSurface* onNewSurface(const SkImageInfo&) SK_OVERRIDE { return NULL; } 118 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI DE { return NULL; }
119 119
120 private: 120 private:
121 template <typename T> 121 template <typename T>
122 T* copy(const T*); 122 T* copy(const T*);
123 123
124 template <typename T> 124 template <typename T>
125 T* copy(const T[], size_t count); 125 T* copy(const T[], size_t count);
126 126
127 SkIRect devBounds() const { 127 SkIRect devBounds() const {
128 SkIRect devBounds; 128 SkIRect devBounds;
129 this->getClipDeviceBounds(&devBounds); 129 this->getClipDeviceBounds(&devBounds);
130 return devBounds; 130 return devBounds;
131 } 131 }
132 132
133 SkRecord* fRecord; 133 SkRecord* fRecord;
134 134
135 int fSaveLayerCount; 135 int fSaveLayerCount;
136 SkTDArray<SkBool8> fSaveIsSaveLayer; 136 SkTDArray<SkBool8> fSaveIsSaveLayer;
137 }; 137 };
138 138
139 #endif//SkRecorder_DEFINED 139 #endif//SkRecorder_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureRecord.cpp ('k') | src/core/SkSurfacePriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698