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

Side by Side Diff: Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp

Issue 791613002: Oilpan: use Member<> for FilterEffect's filter reference. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/graphics/filters/SkiaImageFilterBuilder.h ('k') | no next file » | 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 (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "platform/graphics/ImageBuffer.h" 34 #include "platform/graphics/ImageBuffer.h"
35 #include "platform/graphics/filters/FilterEffect.h" 35 #include "platform/graphics/filters/FilterEffect.h"
36 #include "platform/graphics/filters/FilterOperations.h" 36 #include "platform/graphics/filters/FilterOperations.h"
37 #include "platform/graphics/filters/SourceGraphic.h" 37 #include "platform/graphics/filters/SourceGraphic.h"
38 #include "platform/graphics/skia/SkiaUtils.h" 38 #include "platform/graphics/skia/SkiaUtils.h"
39 #include "public/platform/WebPoint.h" 39 #include "public/platform/WebPoint.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 SkiaImageFilterBuilder::SkiaImageFilterBuilder() 43 SkiaImageFilterBuilder::SkiaImageFilterBuilder()
44 : m_context(0) 44 : m_context(nullptr)
45 , m_sourceGraphic(0) 45 , m_sourceGraphic(nullptr)
46 { 46 {
47 } 47 }
48 48
49 SkiaImageFilterBuilder::SkiaImageFilterBuilder(GraphicsContext* context) 49 SkiaImageFilterBuilder::SkiaImageFilterBuilder(GraphicsContext* context)
50 : m_context(context) 50 : m_context(context)
51 , m_sourceGraphic(0) 51 , m_sourceGraphic(nullptr)
52 { 52 {
53 } 53 }
54 54
55 SkiaImageFilterBuilder::~SkiaImageFilterBuilder() 55 SkiaImageFilterBuilder::~SkiaImageFilterBuilder()
56 { 56 {
57 } 57 }
58 58
59 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::build(FilterEffect* effect, Co lorSpace colorSpace, bool destinationRequiresValidPreMultipliedPixels) 59 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::build(FilterEffect* effect, Co lorSpace colorSpace, bool destinationRequiresValidPreMultipliedPixels)
60 { 60 {
61 if (!effect) 61 if (!effect)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 filters->appendReferenceFilter(filter.get()); 184 filters->appendReferenceFilter(filter.get());
185 } 185 }
186 } 186 }
187 187
188 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::buildTransform(const AffineTra nsform& transform, SkImageFilter* input) 188 PassRefPtr<SkImageFilter> SkiaImageFilterBuilder::buildTransform(const AffineTra nsform& transform, SkImageFilter* input)
189 { 189 {
190 return adoptRef(SkMatrixImageFilter::Create(affineTransformToSkMatrix(transf orm), SkPaint::kHigh_FilterLevel, input)); 190 return adoptRef(SkMatrixImageFilter::Create(affineTransformToSkMatrix(transf orm), SkPaint::kHigh_FilterLevel, input));
191 } 191 }
192 192
193 } // namespace blink 193 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/SkiaImageFilterBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698