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

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

Issue 127373002: Add cc:DrawQuad type for surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/base/math_util.h" 8 #include "cc/base/math_util.h"
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 #include "cc/output/compositor_frame_ack.h" 10 #include "cc/output/compositor_frame_ack.h"
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 case DrawQuad::TEXTURE_CONTENT: 277 case DrawQuad::TEXTURE_CONTENT:
278 DrawTextureQuad(frame, TextureDrawQuad::MaterialCast(quad)); 278 DrawTextureQuad(frame, TextureDrawQuad::MaterialCast(quad));
279 break; 279 break;
280 case DrawQuad::TILED_CONTENT: 280 case DrawQuad::TILED_CONTENT:
281 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad)); 281 DrawTileQuad(frame, TileDrawQuad::MaterialCast(quad));
282 break; 282 break;
283 case DrawQuad::INVALID: 283 case DrawQuad::INVALID:
284 case DrawQuad::IO_SURFACE_CONTENT: 284 case DrawQuad::IO_SURFACE_CONTENT:
285 case DrawQuad::YUV_VIDEO_CONTENT: 285 case DrawQuad::YUV_VIDEO_CONTENT:
286 case DrawQuad::STREAM_VIDEO_CONTENT: 286 case DrawQuad::STREAM_VIDEO_CONTENT:
287 case DrawQuad::SURFACE_CONTENT:
287 DrawUnsupportedQuad(frame, quad); 288 DrawUnsupportedQuad(frame, quad);
288 NOTREACHED(); 289 NOTREACHED();
289 break; 290 break;
290 } 291 }
291 292
292 current_canvas_->resetMatrix(); 293 current_canvas_->resetMatrix();
293 } 294 }
294 295
295 void SoftwareRenderer::DrawCheckerboardQuad(const DrawingFrame* frame, 296 void SoftwareRenderer::DrawCheckerboardQuad(const DrawingFrame* frame,
296 const CheckerboardDrawQuad* quad) { 297 const CheckerboardDrawQuad* quad) {
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 return; 603 return;
603 visible_ = visible; 604 visible_ = visible;
604 605
605 if (visible_) 606 if (visible_)
606 EnsureBackbuffer(); 607 EnsureBackbuffer();
607 else 608 else
608 DiscardBackbuffer(); 609 DiscardBackbuffer();
609 } 610 }
610 611
611 } // namespace cc 612 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/quads/draw_quad.h » ('j') | cc/quads/draw_quad.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698