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

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

Issue 536003002: Hide fields in SkImageInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix qt 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 | « debugger/QT/SkImageWidget.cpp ('k') | gyp/skia_for_android_framework_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {} 55 virtual void drawData(const void* data, size_t length) SK_OVERRIDE {}
56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {} 56 virtual void beginCommentGroup(const char* description) SK_OVERRIDE {}
57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {} 57 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE {}
58 virtual void endCommentGroup() SK_OVERRIDE {} 58 virtual void endCommentGroup() SK_OVERRIDE {}
59 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur n NULL;} 59 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE {retur n NULL;}
60 60
61 virtual bool isClipEmpty() const SK_OVERRIDE { return false; } 61 virtual bool isClipEmpty() const SK_OVERRIDE { return false; }
62 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE { 62 virtual bool getClipBounds(SkRect* bounds) const SK_OVERRIDE {
63 if (NULL != bounds) { 63 if (NULL != bounds) {
64 bounds->setXYWH(0, 0, 64 bounds->setXYWH(0, 0,
65 SkIntToScalar(this->imageInfo().fWidth), 65 SkIntToScalar(this->imageInfo().width()),
66 SkIntToScalar(this->imageInfo().fHeight)); 66 SkIntToScalar(this->imageInfo().height()));
67 } 67 }
68 return true; 68 return true;
69 } 69 }
70 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE { 70 virtual bool getClipDeviceBounds(SkIRect* bounds) const SK_OVERRIDE {
71 if (NULL != bounds) { 71 if (NULL != bounds) {
72 bounds->setLargest(); 72 bounds->setLargest();
73 } 73 }
74 return true; 74 return true;
75 } 75 }
76 76
(...skipping 23 matching lines...) Expand all
100 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {} 100 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE {}
101 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {} 101 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE {}
102 102
103 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE {} 103 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE {}
104 104
105 private: 105 private:
106 typedef SkCanvas INHERITED; 106 typedef SkCanvas INHERITED;
107 }; 107 };
108 108
109 #endif // SkNulCanvas_DEFINED 109 #endif // SkNulCanvas_DEFINED
OLDNEW
« no previous file with comments | « debugger/QT/SkImageWidget.cpp ('k') | gyp/skia_for_android_framework_defines.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698