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

Side by Side Diff: experimental/PdfViewer/SkNulCanvas.h

Issue 189883010: hide getTotalClip, so we can eventually remove it (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | gyp/skia_for_chromium_defines.gypi » ('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 2013 Google Inc. 2 * Copyright 2013 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 SkNulCanvas_DEFINED 8 #ifndef SkNulCanvas_DEFINED
9 #define SkNulCanvas_DEFINED 9 #define SkNulCanvas_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const uint16_t indices[], int indexCount, 77 const uint16_t indices[], int indexCount,
78 const SkPaint& paint) SK_OVERRIDE {} 78 const SkPaint& paint) SK_OVERRIDE {}
79 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} 79 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {}
80 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} 80 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {}
81 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} 81 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {}
82 virtual void endCommentGroup() SK_OVERRIDE {} 82 virtual void endCommentGroup() SK_OVERRIDE {}
83 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE {return NULL;} 83 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE {return NULL;}
84 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur n NULL;} 84 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur n NULL;}
85 85
86 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } 86 virtual bool isClipEmpty() const SK_OVERRIDE { return false; }
87 #ifdef SK_SUPPORT_LEGACY_GETCLIPTYPE
87 virtual ClipType getClipType() const SK_OVERRIDE { return kRect_ClipType; } 88 virtual ClipType getClipType() const SK_OVERRIDE { return kRect_ClipType; }
89 #endif
88 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { 90 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE {
89 if (NULL != bounds) { 91 if (NULL != bounds) {
90 bounds->setXYWH(0, 0, 92 bounds->setXYWH(0, 0,
91 SkIntToScalar(this->imageInfo().fWidth), 93 SkIntToScalar(this->imageInfo().fWidth),
92 SkIntToScalar(this->imageInfo().fHeight)); 94 SkIntToScalar(this->imageInfo().fHeight));
93 } 95 }
94 return true; 96 return true;
95 } 97 }
96 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { 98 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE {
97 if (NULL != bounds) { 99 if (NULL != bounds) {
98 bounds->setLargest(); 100 bounds->setLargest();
99 } 101 }
100 return true; 102 return true;
101 } 103 }
102 104
103 protected: 105 protected:
104 virtual SkCanvas* canvasForDrawIter() {return NULL;} 106 virtual SkCanvas* canvasForDrawIter() {return NULL;}
105 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;} 107 virtual SkBaseDevice* setDevice(SkBaseDevice* device) {return NULL;}
106 108
107 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {} 109 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {}
108 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE {} 110 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE {}
109 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {} 111 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {}
110 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} 112 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {}
111 113
112 private: 114 private:
113 typedef SkCanvas INHERITED; 115 typedef SkCanvas INHERITED;
114 }; 116 };
115 117
116 #endif // SkNulCanvas_DEFINED 118 #endif // SkNulCanvas_DEFINED
OLDNEW
« no previous file with comments | « no previous file | gyp/skia_for_chromium_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698