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

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

Issue 531733003: Reorganize Layer Hoisting code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review issues 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 | « include/core/SkPicture.h ('k') | src/gpu/GrLayerHoister.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 /* 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 const SkImageFilter::Context&, 115 const SkImageFilter::Context&,
116 SkBitmap*, SkIPoint*) SK_OVERRIDE; 116 SkBitmap*, SkIPoint*) SK_OVERRIDE;
117 117
118 class SkAutoCachedTexture; // used internally 118 class SkAutoCachedTexture; // used internally
119 119
120 120
121 protected: 121 protected:
122 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV ERRIDE; 122 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV ERRIDE;
123 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE; 123 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
124 124
125 static bool FindLayersToHoist(const GrAccelData *gpuData,
126 const SkPicture::OperationList* ops,
127 const SkRect& query,
128 bool* pullForward);
129 void drawLayers(const SkPicture* picture,
130 const SkTDArray<GrCachedLayer*>& atlased,
131 const SkTDArray<GrCachedLayer*>& nonAtlased);
132 void unlockLayers(const SkPicture* picture);
133
134 /** PRIVATE / EXPERIMENTAL -- do not call */ 125 /** PRIVATE / EXPERIMENTAL -- do not call */
135 virtual void EXPERIMENTAL_optimize(const SkPicture* picture) SK_OVERRIDE; 126 virtual void EXPERIMENTAL_optimize(const SkPicture* picture) SK_OVERRIDE;
136 /** PRIVATE / EXPERIMENTAL -- do not call */ 127 /** PRIVATE / EXPERIMENTAL -- do not call */
137 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, 128 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture,
138 const SkMatrix*, const SkPaint*) SK_OV ERRIDE; 129 const SkMatrix*, const SkPaint*) SK_OV ERRIDE;
139 130
140 private: 131 private:
141 GrContext* fContext; 132 GrContext* fContext;
142 133
143 GrSkDrawProcs* fDrawProcs; 134 GrSkDrawProcs* fDrawProcs;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool bicubic); 196 bool bicubic);
206 197
207 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
208 199
209 static SkPicture::AccelData::Key ComputeAccelDataKey(); 200 static SkPicture::AccelData::Key ComputeAccelDataKey();
210 201
211 typedef SkBaseDevice INHERITED; 202 typedef SkBaseDevice INHERITED;
212 }; 203 };
213 204
214 #endif 205 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/gpu/GrLayerHoister.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698