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

Side by Side Diff: cc/output/filter_operations.h

Issue 1980613003: cc: correctly fix edge-AA for filtered render surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 7 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_OUTPUT_FILTER_OPERATIONS_H_ 5 #ifndef CC_OUTPUT_FILTER_OPERATIONS_H_
6 #define CC_OUTPUT_FILTER_OPERATIONS_H_ 6 #define CC_OUTPUT_FILTER_OPERATIONS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 void Append(const FilterOperation& filter); 46 void Append(const FilterOperation& filter);
47 47
48 // Removes all filter operations. 48 // Removes all filter operations.
49 void Clear(); 49 void Clear();
50 50
51 bool IsEmpty() const; 51 bool IsEmpty() const;
52 52
53 // Maps "forward" to determine which pixels in a destination rect are affected 53 // Maps "forward" to determine which pixels in a destination rect are affected
54 // by pixels in the source rect. 54 // by pixels in the source rect.
55 gfx::Rect MapRect(const gfx::Rect& rect) const; 55 gfx::Rect MapRect(const gfx::Rect& rect, const SkMatrix& matrix) const;
56 56
57 void GetOutsets(int* top, int* right, int* bottom, int* left) const; 57 void GetOutsets(int* top, int* right, int* bottom, int* left) const;
58 bool HasFilterThatMovesPixels() const; 58 bool HasFilterThatMovesPixels() const;
59 bool HasFilterThatAffectsOpacity() const; 59 bool HasFilterThatAffectsOpacity() const;
60 bool HasReferenceFilter() const; 60 bool HasReferenceFilter() const;
61 61
62 size_t size() const { 62 size_t size() const {
63 return operations_.size(); 63 return operations_.size();
64 } 64 }
65 65
(...skipping 16 matching lines...) Expand all
82 82
83 void AsValueInto(base::trace_event::TracedValue* value) const; 83 void AsValueInto(base::trace_event::TracedValue* value) const;
84 84
85 private: 85 private:
86 std::vector<FilterOperation> operations_; 86 std::vector<FilterOperation> operations_;
87 }; 87 };
88 88
89 } // namespace cc 89 } // namespace cc
90 90
91 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_ 91 #endif // CC_OUTPUT_FILTER_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698