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

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

Issue 2801383002: cc : Delete layer's draw blend mode (Closed)
Patch Set: . Created 3 years, 8 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/video_layer_impl.h" 5 #include "cc/layers/video_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 transform.Rotate(270.0); 164 transform.Rotate(270.0);
165 transform.Translate(-rotated_size.width(), 0); 165 transform.Translate(-rotated_size.width(), 0);
166 case media::VIDEO_ROTATION_0: 166 case media::VIDEO_ROTATION_0:
167 break; 167 break;
168 } 168 }
169 169
170 SharedQuadState* shared_quad_state = 170 SharedQuadState* shared_quad_state =
171 render_pass->CreateAndAppendSharedQuadState(); 171 render_pass->CreateAndAppendSharedQuadState();
172 shared_quad_state->SetAll(transform, rotated_size, visible_layer_rect(), 172 shared_quad_state->SetAll(transform, rotated_size, visible_layer_rect(),
173 clip_rect(), is_clipped(), draw_opacity(), 173 clip_rect(), is_clipped(), draw_opacity(),
174 draw_blend_mode(), GetSortingContextId()); 174 SkBlendMode::kSrcOver, GetSortingContextId());
175 175
176 AppendDebugBorderQuad( 176 AppendDebugBorderQuad(
177 render_pass, rotated_size, shared_quad_state, append_quads_data); 177 render_pass, rotated_size, shared_quad_state, append_quads_data);
178 178
179 gfx::Rect quad_rect(rotated_size); 179 gfx::Rect quad_rect(rotated_size);
180 gfx::Rect opaque_rect(contents_opaque() ? quad_rect : gfx::Rect()); 180 gfx::Rect opaque_rect(contents_opaque() ? quad_rect : gfx::Rect());
181 gfx::Rect visible_rect = frame_->visible_rect(); 181 gfx::Rect visible_rect = frame_->visible_rect();
182 gfx::Size coded_size = frame_->coded_size(); 182 gfx::Size coded_size = frame_->coded_size();
183 183
184 Occlusion occlusion_in_video_space = 184 Occlusion occlusion_in_video_space =
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 void VideoLayerImpl::SetNeedsRedraw() { 373 void VideoLayerImpl::SetNeedsRedraw() {
374 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds()))); 374 SetUpdateRect(gfx::UnionRects(update_rect(), gfx::Rect(bounds())));
375 layer_tree_impl()->SetNeedsRedraw(); 375 layer_tree_impl()->SetNeedsRedraw();
376 } 376 }
377 377
378 const char* VideoLayerImpl::LayerTypeAsString() const { 378 const char* VideoLayerImpl::LayerTypeAsString() const {
379 return "cc::VideoLayerImpl"; 379 return "cc::VideoLayerImpl";
380 } 380 }
381 381
382 } // namespace cc 382 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698