sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 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 | |
halcanary | 878fa02 | 2015-01-26 11:24:32 -0800 | [diff] [blame] | 8 | #include "SkDisplacementMapEffect.h" |
fmalita | 5598b63 | 2015-09-15 11:26:13 -0700 | [diff] [blame] | 9 | #include "SkImage.h" |
| 10 | #include "SkImageSource.h" |
halcanary | 878fa02 | 2015-01-26 11:24:32 -0800 | [diff] [blame] | 11 | #include "gm.h" |
robertphillips | 3e5c2b1 | 2015-03-23 05:46:51 -0700 | [diff] [blame] | 12 | #include "sk_tool_utils.h" |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 13 | |
| 14 | namespace skiagm { |
| 15 | |
| 16 | class DisplacementMapGM : public GM { |
| 17 | public: |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 18 | DisplacementMapGM() { |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 19 | this->setBGColor(0xFF000000); |
| 20 | } |
| 21 | |
| 22 | protected: |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 23 | SkString onShortName() override { |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 24 | return SkString("displacement"); |
| 25 | } |
| 26 | |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 27 | void onOnceBeforeDraw() override { |
| 28 | fBitmap = sk_tool_utils::create_string_bitmap(80, 80, 0xFF884422, 15, 55, 96, "g"); |
| 29 | |
| 30 | SkColor c1 = sk_tool_utils::color_to_565(0xFF244484); |
| 31 | SkColor c2 = sk_tool_utils::color_to_565(0xFF804020); |
| 32 | |
reed | 9ce9d67 | 2016-03-17 10:51:11 -0700 | [diff] [blame] | 33 | fCheckerboard = SkImage::MakeFromBitmap( |
| 34 | sk_tool_utils::create_checkerboard_bitmap(80, 80, c1, c2, 8)); |
| 35 | fSmall = SkImage::MakeFromBitmap( |
| 36 | sk_tool_utils::create_checkerboard_bitmap(64, 64, c1, c2, 8)); |
| 37 | fLarge = SkImage::MakeFromBitmap( |
| 38 | sk_tool_utils::create_checkerboard_bitmap(96, 96, c1, c2, 8)); |
| 39 | fLargeW = |
| 40 | SkImage::MakeFromBitmap(sk_tool_utils::create_checkerboard_bitmap(96, 64, c1, c2, 8)); |
| 41 | fLargeH = SkImage::MakeFromBitmap( |
| 42 | sk_tool_utils::create_checkerboard_bitmap(64, 96, c1, c2, 8)); |
commit-bot@chromium.org | 5e79c2b | 2013-12-12 21:48:32 +0000 | [diff] [blame] | 43 | } |
| 44 | |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 45 | SkISize onISize() override { |
senorblanco | 0050237 | 2016-01-21 09:55:47 -0800 | [diff] [blame] | 46 | return SkISize::Make(600, 500); |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 47 | } |
skia.committer@gmail.com | ff21c2e | 2013-01-16 07:05:56 +0000 | [diff] [blame] | 48 | |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 49 | void drawClippedBitmap(SkCanvas* canvas, int x, int y, const SkPaint& paint) const { |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 50 | canvas->save(); |
senorblanco@chromium.org | bc386ce | 2013-10-15 19:30:58 +0000 | [diff] [blame] | 51 | canvas->translate(SkIntToScalar(x), SkIntToScalar(y)); |
senorblanco@chromium.org | 01bdf3c | 2013-10-15 19:02:43 +0000 | [diff] [blame] | 52 | canvas->clipRect(SkRect::MakeWH(SkIntToScalar(fBitmap.width()), SkIntToScalar(fBitmap.height()))); |
| 53 | canvas->drawBitmap(fBitmap, 0, 0, &paint); |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 54 | canvas->restore(); |
| 55 | } |
| 56 | |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 57 | void onDraw(SkCanvas* canvas) override { |
senorblanco | 16b254a | 2015-04-09 11:13:24 -0700 | [diff] [blame] | 58 | canvas->clear(SK_ColorBLACK); |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 59 | SkPaint paint; |
robertphillips | 549c899 | 2016-04-01 09:28:51 -0700 | [diff] [blame] | 60 | sk_sp<SkImageFilter> displ(SkImageSource::Make(fCheckerboard)); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 61 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 62 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 63 | SkDisplacementMapEffect::kG_ChannelSelectorType, 0.0f, displ, nullptr)); |
| 64 | this->drawClippedBitmap(canvas, 0, 0, paint); |
| 65 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 66 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 67 | SkDisplacementMapEffect::kA_ChannelSelectorType, 16.0f, displ, nullptr)); |
| 68 | this->drawClippedBitmap(canvas, 100, 0, paint); |
| 69 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 70 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 71 | SkDisplacementMapEffect::kB_ChannelSelectorType, 32.0f, displ, nullptr)); |
| 72 | this->drawClippedBitmap(canvas, 200, 0, paint); |
| 73 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 74 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 75 | SkDisplacementMapEffect::kA_ChannelSelectorType, 48.0f, displ, nullptr)); |
| 76 | this->drawClippedBitmap(canvas, 300, 0, paint); |
| 77 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 78 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 79 | SkDisplacementMapEffect::kA_ChannelSelectorType, 64.0f, displ, nullptr)); |
| 80 | this->drawClippedBitmap(canvas, 400, 0, paint); |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 81 | |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 82 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 83 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 84 | SkDisplacementMapEffect::kG_ChannelSelectorType, 40.0f, displ, nullptr)); |
| 85 | this->drawClippedBitmap(canvas, 0, 100, paint); |
| 86 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 87 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 88 | SkDisplacementMapEffect::kA_ChannelSelectorType, 40.0f, displ, nullptr)); |
| 89 | this->drawClippedBitmap(canvas, 100, 100, paint); |
| 90 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 91 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 92 | SkDisplacementMapEffect::kB_ChannelSelectorType, 40.0f, displ, nullptr)); |
| 93 | this->drawClippedBitmap(canvas, 200, 100, paint); |
| 94 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 95 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 96 | SkDisplacementMapEffect::kA_ChannelSelectorType, 40.0f, displ, nullptr)); |
| 97 | this->drawClippedBitmap(canvas, 300, 100, paint); |
| 98 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 99 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 100 | SkDisplacementMapEffect::kA_ChannelSelectorType, 40.0f, displ, nullptr)); |
| 101 | this->drawClippedBitmap(canvas, 400, 100, paint); |
senorblanco@chromium.org | 01bdf3c | 2013-10-15 19:02:43 +0000 | [diff] [blame] | 102 | |
| 103 | SkImageFilter::CropRect cropRect(SkRect::MakeXYWH(30, 30, 40, 40)); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 104 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 105 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 106 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 107 | 0.0f, displ, nullptr, &cropRect)); |
| 108 | this->drawClippedBitmap(canvas, 0, 200, paint); |
| 109 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 110 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
| 111 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 112 | 16.0f, displ, nullptr, &cropRect)); |
| 113 | this->drawClippedBitmap(canvas, 100, 200, paint); |
| 114 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 115 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 116 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 117 | 32.0f, displ, nullptr, &cropRect)); |
| 118 | this->drawClippedBitmap(canvas, 200, 200, paint); |
| 119 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 120 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
| 121 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 122 | 48.0f, displ, nullptr, &cropRect)); |
| 123 | this->drawClippedBitmap(canvas, 300, 200, paint); |
| 124 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 125 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 126 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 127 | 64.0f, displ, nullptr, &cropRect)); |
| 128 | this->drawClippedBitmap(canvas, 400, 200, paint); |
senorblanco@chromium.org | 01bdf3c | 2013-10-15 19:02:43 +0000 | [diff] [blame] | 129 | |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 130 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 131 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 132 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 133 | 40.0f, displ, nullptr, &cropRect)); |
| 134 | this->drawClippedBitmap(canvas, 0, 300, paint); |
| 135 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 136 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
| 137 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 138 | 40.0f, displ, nullptr, &cropRect)); |
| 139 | this->drawClippedBitmap(canvas, 100, 300, paint); |
| 140 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 141 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 142 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 143 | 40.0f, displ, nullptr, &cropRect)); |
| 144 | this->drawClippedBitmap(canvas, 200, 300, paint); |
| 145 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 146 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
| 147 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 148 | 40.0f, displ, nullptr, &cropRect)); |
| 149 | this->drawClippedBitmap(canvas, 300, 300, paint); |
| 150 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 151 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 152 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 153 | 40.0f, displ, nullptr, &cropRect)); |
| 154 | this->drawClippedBitmap(canvas, 400, 300, paint); |
commit-bot@chromium.org | 5e79c2b | 2013-12-12 21:48:32 +0000 | [diff] [blame] | 155 | |
senorblanco | 0050237 | 2016-01-21 09:55:47 -0800 | [diff] [blame] | 156 | // Test for negative scale. |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 157 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
senorblanco | 0050237 | 2016-01-21 09:55:47 -0800 | [diff] [blame] | 158 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
| 159 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 160 | -40.0f, displ, nullptr)); |
senorblanco | 0050237 | 2016-01-21 09:55:47 -0800 | [diff] [blame] | 161 | this->drawClippedBitmap(canvas, 500, 0, paint); |
| 162 | |
commit-bot@chromium.org | 6d7296a | 2013-12-19 17:00:46 +0000 | [diff] [blame] | 163 | // Tests for images of different sizes |
robertphillips | 549c899 | 2016-04-01 09:28:51 -0700 | [diff] [blame] | 164 | displ = SkImageSource::Make(fSmall); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 165 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 166 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 167 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 168 | 40.0f, std::move(displ), nullptr)); |
| 169 | this->drawClippedBitmap(canvas, 0, 400, paint); |
robertphillips | 549c899 | 2016-04-01 09:28:51 -0700 | [diff] [blame] | 170 | displ = SkImageSource::Make(fLarge); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 171 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 172 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
| 173 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 174 | 40.0f, std::move(displ), nullptr)); |
| 175 | this->drawClippedBitmap(canvas, 100, 400, paint); |
robertphillips | 549c899 | 2016-04-01 09:28:51 -0700 | [diff] [blame] | 176 | displ = SkImageSource::Make(fLargeW); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 177 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 178 | SkDisplacementMapEffect::kR_ChannelSelectorType, |
| 179 | SkDisplacementMapEffect::kB_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 180 | 40.0f, std::move(displ), nullptr)); |
| 181 | this->drawClippedBitmap(canvas, 200, 400, paint); |
robertphillips | 549c899 | 2016-04-01 09:28:51 -0700 | [diff] [blame] | 182 | displ = SkImageSource::Make(fLargeH); |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 183 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 184 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
| 185 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 186 | 40.0f, std::move(displ), nullptr)); |
| 187 | this->drawClippedBitmap(canvas, 300, 400, paint); |
commit-bot@chromium.org | 6d7296a | 2013-12-19 17:00:46 +0000 | [diff] [blame] | 188 | |
| 189 | // Test for no given displacement input. In this case, both displacement |
| 190 | // and color should use the same bitmap, given to SkCanvas::drawBitmap() |
| 191 | // as an input argument. |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 192 | paint.setImageFilter(SkDisplacementMapEffect::Make( |
commit-bot@chromium.org | cac5fd5 | 2014-03-10 10:51:58 +0000 | [diff] [blame] | 193 | SkDisplacementMapEffect::kG_ChannelSelectorType, |
| 194 | SkDisplacementMapEffect::kA_ChannelSelectorType, |
robertphillips | bfe11fc | 2016-04-15 07:17:36 -0700 | [diff] [blame] | 195 | 40.0f, nullptr, nullptr)); |
| 196 | this->drawClippedBitmap(canvas, 400, 400, paint); |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | private: |
fmalita | 5598b63 | 2015-09-15 11:26:13 -0700 | [diff] [blame] | 200 | SkBitmap fBitmap; |
reed | 9ce9d67 | 2016-03-17 10:51:11 -0700 | [diff] [blame] | 201 | sk_sp<SkImage> fCheckerboard, fSmall, fLarge, fLargeW, fLargeH; |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 202 | |
| 203 | typedef GM INHERITED; |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 204 | }; |
| 205 | |
| 206 | ////////////////////////////////////////////////////////////////////////////// |
| 207 | |
robertphillips | 943a462 | 2015-09-03 13:32:33 -0700 | [diff] [blame] | 208 | DEF_GM(return new DisplacementMapGM;) |
sugoi@google.com | 781cc76 | 2013-01-15 15:40:19 +0000 | [diff] [blame] | 209 | } |