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

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

Issue 617953002: Strip old backend recording down to essentials (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: debug-only Created 6 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 | « include/core/SkPictureRecorder.h ('k') | src/core/SkBBoxHierarchyRecord.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 /*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9 #ifndef SkRTreeCanvas_DEFINED
10 #define SkRTreeCanvas_DEFINED
11
12 #include "SkBBoxHierarchy.h"
13 #include "SkBBoxRecord.h"
14
15 /**
16 * This records bounding box information into an SkBBoxHierarchy, and clip/trans form information
17 * into an SkPictureStateTree to allow for efficient culling and correct playbac k of draws.
18 */
19 class SkBBoxHierarchyRecord : public SkBBoxRecord, public SkBBoxHierarchyClient {
20 public:
21 /** This will take a ref of h */
22 SkBBoxHierarchyRecord(const SkISize& size, uint32_t recordFlags, SkBBoxHiera rchy* h);
23 virtual ~SkBBoxHierarchyRecord() { };
24
25 virtual void handleBBox(const SkRect& bounds) SK_OVERRIDE;
26
27 // Implementation of the SkBBoxHierarchyClient interface
28 virtual bool shouldRewind(void* data) SK_OVERRIDE;
29
30 protected:
31 virtual void willSave() SK_OVERRIDE;
32 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
33 virtual void willRestore() SK_OVERRIDE;
34
35 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
36 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
37
38 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
39 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
40 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
41 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
42
43 private:
44 typedef SkBBoxRecord INHERITED;
45 };
46
47 #endif
OLDNEW
« no previous file with comments | « include/core/SkPictureRecorder.h ('k') | src/core/SkBBoxHierarchyRecord.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698