Chromium Code Reviews

Side by Side Diff: skia/ext/analysis_canvas.cc

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
13 12
14 namespace { 13 namespace {
15 14
16 const int kNoLayer = -1; 15 const int kNoLayer = -1;
17 16
18 bool ActsLikeClear(SkXfermode::Mode mode, unsigned src_alpha) { 17 bool ActsLikeClear(SkXfermode::Mode mode, unsigned src_alpha) {
19 switch (mode) { 18 switch (mode) {
20 case SkXfermode::kClear_Mode: 19 case SkXfermode::kClear_Mode:
21 return true; 20 return true;
22 case SkXfermode::kSrc_Mode: 21 case SkXfermode::kSrc_Mode:
(...skipping 422 matching lines...)
445 force_not_transparent_stack_level_ = kNoLayer; 444 force_not_transparent_stack_level_ = kNoLayer;
446 } 445 }
447 } 446 }
448 447
449 INHERITED::willRestore(); 448 INHERITED::willRestore();
450 } 449 }
451 450
452 } // namespace skia 451 } // namespace skia
453 452
454 453
OLDNEW
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine