OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/fxge/cfx_fxgedevice.h" | 5 #include "core/fxge/cfx_fxgedevice.h" |
6 #include "core/fxge/cfx_graphstatedata.h" | 6 #include "core/fxge/cfx_graphstatedata.h" |
7 #include "core/fxge/cfx_pathdata.h" | 7 #include "core/fxge/cfx_pathdata.h" |
8 #include "core/fxge/cfx_renderdevice.h" | 8 #include "core/fxge/cfx_renderdevice.h" |
9 #include "core/fxge/skia/fx_skia_device.h" | 9 #include "core/fxge/skia/fx_skia_device.h" |
10 #include "fpdfsdk/fsdk_define.h" | 10 #include "fpdfsdk/fsdk_define.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentPath, | 146 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentPath, |
147 State::Graphic::kPath, 0xFF112233}); | 147 State::Graphic::kPath, 0xFF112233}); |
148 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, State::Clip::kNo, | 148 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, State::Clip::kNo, |
149 State::Graphic::kPath, 0xFF112233}); | 149 State::Graphic::kPath, 0xFF112233}); |
150 Harness(&CommonTest, {State::Change::kYes, State::Save::kNo, State::Clip::kNo, | 150 Harness(&CommonTest, {State::Change::kYes, State::Save::kNo, State::Clip::kNo, |
151 State::Graphic::kPath, 0xFF112233}); | 151 State::Graphic::kPath, 0xFF112233}); |
152 Harness(&CommonTest, {State::Change::kNo, State::Save::kNo, State::Clip::kNo, | 152 Harness(&CommonTest, {State::Change::kNo, State::Save::kNo, State::Clip::kNo, |
153 State::Graphic::kPath, 0xFF112233}); | 153 State::Graphic::kPath, 0xFF112233}); |
154 } | 154 } |
155 | 155 |
| 156 #ifdef _SKIA_SUPPORT_ |
156 TEST(fxge, SkiaStateText) { | 157 TEST(fxge, SkiaStateText) { |
157 Harness(&CommonTest, | 158 Harness(&CommonTest, |
158 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentMatrix, | 159 {State::Change::kNo, State::Save::kYes, State::Clip::kDifferentMatrix, |
159 State::Graphic::kText, 0xFF445566}); | 160 State::Graphic::kText, 0xFF445566}); |
160 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, | 161 Harness(&CommonTest, {State::Change::kNo, State::Save::kYes, |
161 State::Clip::kSame, State::Graphic::kText, 0xFF445566}); | 162 State::Clip::kSame, State::Graphic::kText, 0xFF445566}); |
162 } | 163 } |
| 164 #endif |
163 | 165 |
164 TEST(fxge, SkiaStateOOSClip) { | 166 TEST(fxge, SkiaStateOOSClip) { |
165 Harness(&OutOfSequenceClipTest, {}); | 167 Harness(&OutOfSequenceClipTest, {}); |
166 } | 168 } |
OLD | NEW |