OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium 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 "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/trace_event/trace_event.h" | 6 #include "base/trace_event/trace_event.h" |
7 #include "skia/ext/analysis_canvas.h" | 7 #include "skia/ext/analysis_canvas.h" |
8 #include "third_party/skia/include/core/SkDraw.h" | 8 #include "third_party/skia/include/core/SkDraw.h" |
9 #include "third_party/skia/include/core/SkRRect.h" | 9 #include "third_party/skia/include/core/SkRRect.h" |
10 #include "third_party/skia/include/core/SkShader.h" | 10 #include "third_party/skia/include/core/SkShader.h" |
11 #include "third_party/skia/src/core/SkRasterClip.h" | 11 #include "third_party/skia/src/core/SkRasterClip.h" |
| 12 #include "ui/gfx/geometry/rect_conversions.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 const int kNoLayer = -1; | 16 const int kNoLayer = -1; |
16 | 17 |
17 bool ActsLikeClear(SkXfermode::Mode mode, unsigned src_alpha) { | 18 bool ActsLikeClear(SkXfermode::Mode mode, unsigned src_alpha) { |
18 switch (mode) { | 19 switch (mode) { |
19 case SkXfermode::kClear_Mode: | 20 case SkXfermode::kClear_Mode: |
20 return true; | 21 return true; |
21 case SkXfermode::kSrc_Mode: | 22 case SkXfermode::kSrc_Mode: |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 force_not_transparent_stack_level_ = kNoLayer; | 445 force_not_transparent_stack_level_ = kNoLayer; |
445 } | 446 } |
446 } | 447 } |
447 | 448 |
448 INHERITED::willRestore(); | 449 INHERITED::willRestore(); |
449 } | 450 } |
450 | 451 |
451 } // namespace skia | 452 } // namespace skia |
452 | 453 |
453 | 454 |
OLD | NEW |