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

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

Issue 211293003: update VIDEO_HOLE block wrt recent cc changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 // 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "cc/layers/quad_sink.h" 9 #include "cc/layers/quad_sink.h"
10 #include "cc/layers/video_frame_provider_client_impl.h" 10 #include "cc/layers/video_frame_provider_client_impl.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Create a solid color quad with transparent black and force no 268 // Create a solid color quad with transparent black and force no
269 // blending / no anti-aliasing. 269 // blending / no anti-aliasing.
270 gfx::Rect opaque_rect = quad_rect; 270 gfx::Rect opaque_rect = quad_rect;
271 solid_color_draw_quad->SetAll(shared_quad_state, 271 solid_color_draw_quad->SetAll(shared_quad_state,
272 quad_rect, 272 quad_rect,
273 opaque_rect, 273 opaque_rect,
274 visible_quad_rect, 274 visible_quad_rect,
275 false, 275 false,
276 SK_ColorTRANSPARENT, 276 SK_ColorTRANSPARENT,
277 true); 277 true);
278 quad_sink->Append(solid_color_draw_quad.PassAs<DrawQuad>(), 278 quad_sink->Append(solid_color_draw_quad.PassAs<DrawQuad>());
279 append_quads_data);
280 break; 279 break;
281 } 280 }
282 #endif // defined(VIDEO_HOLE) 281 #endif // defined(VIDEO_HOLE)
283 case VideoFrameExternalResources::NONE: 282 case VideoFrameExternalResources::NONE:
284 NOTIMPLEMENTED(); 283 NOTIMPLEMENTED();
285 break; 284 break;
286 } 285 }
287 } 286 }
288 287
289 void VideoLayerImpl::DidDraw(ResourceProvider* resource_provider) { 288 void VideoLayerImpl::DidDraw(ResourceProvider* resource_provider) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 void VideoLayerImpl::SetProviderClientImpl( 321 void VideoLayerImpl::SetProviderClientImpl(
323 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) { 322 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl) {
324 provider_client_impl_ = provider_client_impl; 323 provider_client_impl_ = provider_client_impl;
325 } 324 }
326 325
327 const char* VideoLayerImpl::LayerTypeAsString() const { 326 const char* VideoLayerImpl::LayerTypeAsString() const {
328 return "cc::VideoLayerImpl"; 327 return "cc::VideoLayerImpl";
329 } 328 }
330 329
331 } // namespace cc 330 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698