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

Side by Side Diff: src/gpu/draws/GrDrawRect.h

Issue 1336413006: Just an experiment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 2 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/gpu/draws/GrDraw.cpp ('k') | src/gpu/draws/GrDrawRect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrDrawRect_DEFINED
9 #define GrDrawRect_DEFINED
10
11 #include "GrDraw.h"
12
13 class GrClip;
14 class GrContext;
15 class GrRenderTarget;
16 class GrStrokeInfo;
17 class SkMatrix;
18 class SkPaint;
19 struct SkRect;
20
21 class GrDrawRect : public GrDraw {
22 public:
23 GrDrawRect(GrRenderTarget* rt,
24 GrContext* context,
25 const GrClip& clip,
26 const SkPaint& paint,
27 const SkMatrix& viewMatrix,
28 const SkRect& rect,
29 const GrStrokeInfo* strokeInfo)
30 : fRenderTarget(rt)
31 , fContext(context)
32 , fClip(&clip)
33 , fPaint(&paint)
34 , fViewMatrix(&viewMatrix)
35 , fRect(&rect)
36 , fStrokeInfo(strokeInfo) {
37 GRDRAW_ASSERT_OWNED_RESOURCE(fRenderTarget);
38 fClassID = GrDraw::ClassID<GrDrawRect>();
39 }
40
41 void execute(GrDrawTarget*) const override;
42
43 static uint32_t ClassID() { return GrDraw::ClassID<GrDrawRect>(); }
44
45 private:
46 GrRenderTarget* fRenderTarget;
47 GrContext* fContext;
48 const GrClip* fClip;
49 const SkPaint* fPaint;
50 const SkMatrix* fViewMatrix;
51 const SkRect* fRect;
52 const GrStrokeInfo* fStrokeInfo;
53
54 typedef GrDraw INHERITED;
55 };
56
57
58 #endif
OLDNEW
« no previous file with comments | « src/gpu/draws/GrDraw.cpp ('k') | src/gpu/draws/GrDrawRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698