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

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

Issue 1893273005: Hook up plumbing for minification/magnification filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp66
Patch Set: Fix test. 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
« no previous file with comments | « no previous file | cc/output/ca_layer_overlay.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_CA_LAYER_OVERLAY_H_ 5 #ifndef CC_OUTPUT_CA_LAYER_OVERLAY_H_
6 #define CC_OUTPUT_CA_LAYER_OVERLAY_H_ 6 #define CC_OUTPUT_CA_LAYER_OVERLAY_H_
7 7
8 #include "cc/quads/render_pass.h" 8 #include "cc/quads/render_pass.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "third_party/skia/include/utils/SkMatrix44.h" 10 #include "third_party/skia/include/utils/SkMatrix44.h"
(...skipping 24 matching lines...) Expand all
35 // The opacity property for the CAayer. 35 // The opacity property for the CAayer.
36 float opacity = 1; 36 float opacity = 1;
37 // The background color property for the CALayer. 37 // The background color property for the CALayer.
38 SkColor background_color = SK_ColorTRANSPARENT; 38 SkColor background_color = SK_ColorTRANSPARENT;
39 // The edge anti-aliasing mask property for the CALayer. 39 // The edge anti-aliasing mask property for the CALayer.
40 unsigned edge_aa_mask = 0; 40 unsigned edge_aa_mask = 0;
41 // The bounds for the CALayer in pixels. 41 // The bounds for the CALayer in pixels.
42 gfx::RectF bounds_rect; 42 gfx::RectF bounds_rect;
43 // The transform to apply to the CALayer. 43 // The transform to apply to the CALayer.
44 SkMatrix44 transform = SkMatrix44(SkMatrix44::kIdentity_Constructor); 44 SkMatrix44 transform = SkMatrix44(SkMatrix44::kIdentity_Constructor);
45 // The minification and magnification filters for the CALayer.
46 unsigned filter;
45 }; 47 };
46 48
47 typedef std::vector<CALayerOverlay> CALayerOverlayList; 49 typedef std::vector<CALayerOverlay> CALayerOverlayList;
48 50
49 // Returns true if all quads in the root render pass have been replaced by 51 // Returns true if all quads in the root render pass have been replaced by
50 // CALayerOverlays. 52 // CALayerOverlays.
51 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider, 53 bool ProcessForCALayerOverlays(ResourceProvider* resource_provider,
52 const gfx::RectF& display_rect, 54 const gfx::RectF& display_rect,
53 const QuadList& quad_list, 55 const QuadList& quad_list,
54 CALayerOverlayList* ca_layer_overlays); 56 CALayerOverlayList* ca_layer_overlays);
55 57
56 } // namespace cc 58 } // namespace cc
57 59
58 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_ 60 #endif // CC_OUTPUT_CA_LAYER_OVERLAY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/ca_layer_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698