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

Side by Side Diff: third_party/agg23/agg_rasterizer_scanline_aa.h

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 5 years 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 | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | 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 1
2 //---------------------------------------------------------------------------- 2 //----------------------------------------------------------------------------
3 // Anti-Grain Geometry - Version 2.3 3 // Anti-Grain Geometry - Version 2.3
4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com) 4 // Copyright (C) 2002-2005 Maxim Shemanarev (http://www.antigrain.com)
5 // 5 //
6 // Permission to copy, use, modify, sell and distribute this software 6 // Permission to copy, use, modify, sell and distribute this software
7 // is granted provided this copyright notice appears in all copies. 7 // is granted provided this copyright notice appears in all copies.
8 // This software is provided "as is" without express or implied 8 // This software is provided "as is" without express or implied
9 // warranty, and with no claim as to its suitability for any purpose. 9 // warranty, and with no claim as to its suitability for any purpose.
10 // 10 //
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 { 376 {
377 FX_FLOAT x; 377 FX_FLOAT x;
378 FX_FLOAT y; 378 FX_FLOAT y;
379 unsigned cmd; 379 unsigned cmd;
380 vs.rewind(path_id); 380 vs.rewind(path_id);
381 while(!is_stop(cmd = vs.vertex(&x, &y))) { 381 while(!is_stop(cmd = vs.vertex(&x, &y))) {
382 add_vertex(x, y, cmd); 382 add_vertex(x, y, cmd);
383 } 383 }
384 } 384 }
385 template<class VertexSource> 385 template<class VertexSource>
386 void add_path_transformed(VertexSource& vs, const CFX_AffineMatrix* pMatrix, unsigned path_id = 0) 386 void add_path_transformed(VertexSource& vs, const CFX_Matrix* pMatrix, unsig ned path_id = 0)
387 { 387 {
388 FX_FLOAT x; 388 FX_FLOAT x;
389 FX_FLOAT y; 389 FX_FLOAT y;
390 unsigned cmd; 390 unsigned cmd;
391 vs.rewind(path_id); 391 vs.rewind(path_id);
392 while(!is_stop(cmd = vs.vertex(&x, &y))) { 392 while(!is_stop(cmd = vs.vertex(&x, &y))) {
393 if (pMatrix) { 393 if (pMatrix) {
394 pMatrix->Transform(x, y); 394 pMatrix->Transform(x, y);
395 } 395 }
396 add_vertex(x, y, cmd); 396 add_vertex(x, y, cmd);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 int m_prev_x; 466 int m_prev_x;
467 int m_prev_y; 467 int m_prev_y;
468 unsigned m_prev_flags; 468 unsigned m_prev_flags;
469 unsigned m_status; 469 unsigned m_status;
470 rect m_clip_box; 470 rect m_clip_box;
471 bool m_clipping; 471 bool m_clipping;
472 int m_cur_y; 472 int m_cur_y;
473 }; 473 };
474 } 474 }
475 #endif 475 #endif
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Wnd.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698