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

Side by Side Diff: gm/filterindiabox.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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 | « gm/filterfastbounds.cpp ('k') | gm/fontcache.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 #include "gm.h" 8 #include "gm.h"
9 9
10 #include "Resources.h" 10 #include "Resources.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) { 68 FilterIndiaBoxGM(const char filename[]) : fFilename(filename) {
69 fName.printf("filterindiabox"); 69 fName.printf("filterindiabox");
70 } 70 }
71 71
72 protected: 72 protected:
73 SkString onShortName() SK_OVERRIDE { 73 SkString onShortName() SK_OVERRIDE {
74 return fName; 74 return fName;
75 } 75 }
76 76
77 #ifdef SK_CPU_ARM64
78 // Skip tiled drawing on 64-bit ARM until https://skbug.com/2908 is fixed.
79 uint32_t onGetFlags() const SK_OVERRIDE {
80 return kSkipTiled_Flag;
81 }
82 #endif
83
84 SkISize onISize() SK_OVERRIDE { 77 SkISize onISize() SK_OVERRIDE {
85 return SkISize::Make(1024, 768); 78 return SkISize::Make(1024, 768);
86 } 79 }
87 80
88 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 81 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
89 canvas->translate(10, 10); 82 canvas->translate(10, 10);
90 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) { 83 for (size_t i = 0; i < SK_ARRAY_COUNT(fMatrix); ++i) {
91 SkSize size = computeSize(fBM, fMatrix[i]); 84 SkSize size = computeSize(fBM, fMatrix[i]);
92 size.fWidth += 20; 85 size.fWidth += 20;
93 size.fHeight += 20; 86 size.fHeight += 20;
(...skipping 29 matching lines...) Expand all
123 fSize = fBM.height(); 116 fSize = fBM.height();
124 } 117 }
125 private: 118 private:
126 typedef skiagm::GM INHERITED; 119 typedef skiagm::GM INHERITED;
127 }; 120 };
128 121
129 ////////////////////////////////////////////////////////////////////////////// 122 //////////////////////////////////////////////////////////////////////////////
130 123
131 124
132 DEF_GM( return new FilterIndiaBoxGM("box.gif"); ) 125 DEF_GM( return new FilterIndiaBoxGM("box.gif"); )
OLDNEW
« no previous file with comments | « gm/filterfastbounds.cpp ('k') | gm/fontcache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698