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

Side by Side Diff: cc/output/software_renderer.cc

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scoping Y8 out. Created 4 years, 2 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 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/output/software_renderer.h" 5 #include "cc/output/software_renderer.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/trace_event/trace_event.h" 8 #include "base/trace_event/trace_event.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); 287 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad));
288 break; 288 break;
289 case DrawQuad::SURFACE_CONTENT: 289 case DrawQuad::SURFACE_CONTENT:
290 // Surface content should be fully resolved to other quad types before 290 // Surface content should be fully resolved to other quad types before
291 // reaching a direct renderer. 291 // reaching a direct renderer.
292 NOTREACHED(); 292 NOTREACHED();
293 break; 293 break;
294 case DrawQuad::INVALID: 294 case DrawQuad::INVALID:
295 case DrawQuad::YUV_VIDEO_CONTENT: 295 case DrawQuad::YUV_VIDEO_CONTENT:
296 case DrawQuad::STREAM_VIDEO_CONTENT: 296 case DrawQuad::STREAM_VIDEO_CONTENT:
297 case DrawQuad::Y_VIDEO_CONTENT:
297 DrawUnsupportedQuad(frame, quad); 298 DrawUnsupportedQuad(frame, quad);
298 NOTREACHED(); 299 NOTREACHED();
299 break; 300 break;
300 } 301 }
301 302
302 current_canvas_->resetMatrix(); 303 current_canvas_->resetMatrix();
303 if (draw_region) { 304 if (draw_region) {
304 current_canvas_->restore(); 305 current_canvas_->restore();
305 } 306 }
306 } 307 }
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr); 711 ApplyImageFilter(filter.get(), quad, backdrop_bitmap, nullptr);
711 712
712 if (!filter_backdrop_image) 713 if (!filter_backdrop_image)
713 return nullptr; 714 return nullptr;
714 715
715 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode, 716 return filter_backdrop_image->makeShader(content_tile_mode, content_tile_mode,
716 &filter_backdrop_transform); 717 &filter_backdrop_transform);
717 } 718 }
718 719
719 } // namespace cc 720 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698