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

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

Issue 313613004: Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add staging entry point for Chromium and Android Created 6 years, 6 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const SkMatrix& m, 45 const SkMatrix& m,
46 const SkPaint* paint = NULL) SK_OVERRIDE; 46 const SkPaint* paint = NULL) SK_OVERRIDE;
47 void drawBitmapNine(const SkBitmap& bitmap, 47 void drawBitmapNine(const SkBitmap& bitmap,
48 const SkIRect& center, 48 const SkIRect& center,
49 const SkRect& dst, 49 const SkRect& dst,
50 const SkPaint* paint = NULL) SK_OVERRIDE; 50 const SkPaint* paint = NULL) SK_OVERRIDE;
51 void drawSprite(const SkBitmap& bitmap, 51 void drawSprite(const SkBitmap& bitmap,
52 int left, 52 int left,
53 int top, 53 int top,
54 const SkPaint* paint = NULL) SK_OVERRIDE; 54 const SkPaint* paint = NULL) SK_OVERRIDE;
55 void drawPicture(SkPicture& picture) SK_OVERRIDE;
56 void drawVertices(VertexMode vmode, 55 void drawVertices(VertexMode vmode,
57 int vertexCount, 56 int vertexCount,
58 const SkPoint vertices[], 57 const SkPoint vertices[],
59 const SkPoint texs[], 58 const SkPoint texs[],
60 const SkColor colors[], 59 const SkColor colors[],
61 SkXfermode* xmode, 60 SkXfermode* xmode,
62 const uint16_t indices[], 61 const uint16_t indices[],
63 int indexCount, 62 int indexCount,
64 const SkPaint& paint) SK_OVERRIDE; 63 const SkPaint& paint) SK_OVERRIDE;
65 64
(...skipping 22 matching lines...) Expand all
88 void onDrawTextOnPath(const void* text, 87 void onDrawTextOnPath(const void* text,
89 size_t byteLength, 88 size_t byteLength,
90 const SkPath& path, 89 const SkPath& path,
91 const SkMatrix* matrix, 90 const SkMatrix* matrix,
92 const SkPaint& paint) SK_OVERRIDE; 91 const SkPaint& paint) SK_OVERRIDE;
93 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 92 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
94 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE; 93 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt yle) SK_OVERRIDE;
95 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE; 94 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle ) SK_OVERRIDE;
96 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; 95 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE;
97 96
97 void onDrawPicture(const SkPicture* picture) SK_OVERRIDE;
98
98 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; 99 void onPushCull(const SkRect& cullRect) SK_OVERRIDE;
99 void onPopCull() SK_OVERRIDE; 100 void onPopCull() SK_OVERRIDE;
100 101
101 private: 102 private:
102 template <typename T> 103 template <typename T>
103 T* copy(const T*); 104 T* copy(const T*);
104 105
105 template <typename T> 106 template <typename T>
106 T* copy(const T[], unsigned count); 107 T* copy(const T[], unsigned count);
107 108
108 SkRecord* fRecord; 109 SkRecord* fRecord;
109 }; 110 };
110 111
111 #endif//SkRecorder_DEFINED 112 #endif//SkRecorder_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698