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

Side by Side Diff: cc/layers/picture_layer_impl.cc

Issue 549683002: Adding blend mode to DrawProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « cc/layers/layer_impl.cc ('k') | cc/layers/video_layer_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/layers/picture_layer_impl.h" 5 #include "cc/layers/picture_layer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scaled_visible_content_rect.Intersect(gfx::Rect(scaled_content_bounds)); 164 scaled_visible_content_rect.Intersect(gfx::Rect(scaled_content_bounds));
165 165
166 SharedQuadState* shared_quad_state = 166 SharedQuadState* shared_quad_state =
167 render_pass->CreateAndAppendSharedQuadState(); 167 render_pass->CreateAndAppendSharedQuadState();
168 shared_quad_state->SetAll(scaled_draw_transform, 168 shared_quad_state->SetAll(scaled_draw_transform,
169 scaled_content_bounds, 169 scaled_content_bounds,
170 scaled_visible_content_rect, 170 scaled_visible_content_rect,
171 draw_properties().clip_rect, 171 draw_properties().clip_rect,
172 draw_properties().is_clipped, 172 draw_properties().is_clipped,
173 draw_properties().opacity, 173 draw_properties().opacity,
174 blend_mode(), 174 draw_properties().blend_mode,
175 sorting_context_id_); 175 sorting_context_id_);
176 176
177 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) { 177 if (current_draw_mode_ == DRAW_MODE_RESOURCELESS_SOFTWARE) {
178 AppendDebugBorderQuad( 178 AppendDebugBorderQuad(
179 render_pass, 179 render_pass,
180 scaled_content_bounds, 180 scaled_content_bounds,
181 shared_quad_state, 181 shared_quad_state,
182 append_quads_data, 182 append_quads_data,
183 DebugColors::DirectPictureBorderColor(), 183 DebugColors::DirectPictureBorderColor(),
184 DebugColors::DirectPictureBorderWidth(layer_tree_impl())); 184 DebugColors::DirectPictureBorderWidth(layer_tree_impl()));
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange(); 1769 PictureLayerTilingSet::TilingRange tiling_range = CurrentTilingRange();
1770 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start; 1770 size_t current_tiling_range_offset = current_tiling_ - tiling_range.start;
1771 return tiling_range.end - 1 - current_tiling_range_offset; 1771 return tiling_range.end - 1 - current_tiling_range_offset;
1772 } 1772 }
1773 } 1773 }
1774 NOTREACHED(); 1774 NOTREACHED();
1775 return 0; 1775 return 0;
1776 } 1776 }
1777 1777
1778 } // namespace cc 1778 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698