OLD | NEW |
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/quads/draw_quad.h" | 5 #include "cc/quads/draw_quad.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 CREATE_QUAD_2_ALL(DebugBorderDrawQuad, color, width); | 397 CREATE_QUAD_2_ALL(DebugBorderDrawQuad, color, width); |
398 EXPECT_EQ(DrawQuad::DEBUG_BORDER, copy_quad->material); | 398 EXPECT_EQ(DrawQuad::DEBUG_BORDER, copy_quad->material); |
399 EXPECT_EQ(color, copy_quad->color); | 399 EXPECT_EQ(color, copy_quad->color); |
400 EXPECT_EQ(width, copy_quad->width); | 400 EXPECT_EQ(width, copy_quad->width); |
401 } | 401 } |
402 | 402 |
403 TEST(DrawQuadTest, CopyIOSurfaceDrawQuad) { | 403 TEST(DrawQuadTest, CopyIOSurfaceDrawQuad) { |
404 gfx::Rect opaque_rect(33, 47, 10, 12); | 404 gfx::Rect opaque_rect(33, 47, 10, 12); |
405 gfx::Rect visible_rect(40, 50, 30, 20); | 405 gfx::Rect visible_rect(40, 50, 30, 20); |
406 gfx::Size size(58, 95); | 406 gfx::Size size(58, 95); |
407 ResourceProvider::ResourceId resource_id = 72; | 407 ResourceId resource_id = 72; |
408 IOSurfaceDrawQuad::Orientation orientation = IOSurfaceDrawQuad::UNFLIPPED; | 408 IOSurfaceDrawQuad::Orientation orientation = IOSurfaceDrawQuad::UNFLIPPED; |
409 CREATE_SHARED_STATE(); | 409 CREATE_SHARED_STATE(); |
410 | 410 |
411 CREATE_QUAD_5_NEW(IOSurfaceDrawQuad, | 411 CREATE_QUAD_5_NEW(IOSurfaceDrawQuad, |
412 opaque_rect, | 412 opaque_rect, |
413 visible_rect, | 413 visible_rect, |
414 size, | 414 size, |
415 resource_id, | 415 resource_id, |
416 orientation); | 416 orientation); |
417 EXPECT_EQ(DrawQuad::IO_SURFACE_CONTENT, copy_quad->material); | 417 EXPECT_EQ(DrawQuad::IO_SURFACE_CONTENT, copy_quad->material); |
418 EXPECT_EQ(visible_rect, copy_quad->visible_rect); | 418 EXPECT_EQ(visible_rect, copy_quad->visible_rect); |
419 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); | 419 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); |
420 EXPECT_EQ(size, copy_quad->io_surface_size); | 420 EXPECT_EQ(size, copy_quad->io_surface_size); |
421 EXPECT_EQ(resource_id, copy_quad->io_surface_resource_id); | 421 EXPECT_EQ(resource_id, copy_quad->io_surface_resource_id); |
422 EXPECT_EQ(orientation, copy_quad->orientation); | 422 EXPECT_EQ(orientation, copy_quad->orientation); |
423 | 423 |
424 CREATE_QUAD_3_ALL(IOSurfaceDrawQuad, size, resource_id, orientation); | 424 CREATE_QUAD_3_ALL(IOSurfaceDrawQuad, size, resource_id, orientation); |
425 EXPECT_EQ(DrawQuad::IO_SURFACE_CONTENT, copy_quad->material); | 425 EXPECT_EQ(DrawQuad::IO_SURFACE_CONTENT, copy_quad->material); |
426 EXPECT_EQ(size, copy_quad->io_surface_size); | 426 EXPECT_EQ(size, copy_quad->io_surface_size); |
427 EXPECT_EQ(resource_id, copy_quad->io_surface_resource_id); | 427 EXPECT_EQ(resource_id, copy_quad->io_surface_resource_id); |
428 EXPECT_EQ(orientation, copy_quad->orientation); | 428 EXPECT_EQ(orientation, copy_quad->orientation); |
429 } | 429 } |
430 | 430 |
431 TEST(DrawQuadTest, CopyRenderPassDrawQuad) { | 431 TEST(DrawQuadTest, CopyRenderPassDrawQuad) { |
432 gfx::Rect visible_rect(40, 50, 30, 20); | 432 gfx::Rect visible_rect(40, 50, 30, 20); |
433 RenderPassId render_pass_id(22, 64); | 433 RenderPassId render_pass_id(22, 64); |
434 ResourceProvider::ResourceId mask_resource_id = 78; | 434 ResourceId mask_resource_id = 78; |
435 gfx::Vector2dF mask_uv_scale(33.f, 19.f); | 435 gfx::Vector2dF mask_uv_scale(33.f, 19.f); |
436 gfx::Size mask_texture_size(128, 134); | 436 gfx::Size mask_texture_size(128, 134); |
437 FilterOperations filters; | 437 FilterOperations filters; |
438 filters.Append(FilterOperation::CreateBlurFilter(1.f)); | 438 filters.Append(FilterOperation::CreateBlurFilter(1.f)); |
439 gfx::Vector2dF filters_scale; | 439 gfx::Vector2dF filters_scale; |
440 FilterOperations background_filters; | 440 FilterOperations background_filters; |
441 background_filters.Append( | 441 background_filters.Append( |
442 FilterOperation::CreateGrayscaleFilter(1.f)); | 442 FilterOperation::CreateGrayscaleFilter(1.f)); |
443 | 443 |
444 RenderPassId copied_render_pass_id(235, 11); | 444 RenderPassId copied_render_pass_id(235, 11); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 | 500 |
501 CREATE_QUAD_2_ALL(SolidColorDrawQuad, color, force_anti_aliasing_off); | 501 CREATE_QUAD_2_ALL(SolidColorDrawQuad, color, force_anti_aliasing_off); |
502 EXPECT_EQ(DrawQuad::SOLID_COLOR, copy_quad->material); | 502 EXPECT_EQ(DrawQuad::SOLID_COLOR, copy_quad->material); |
503 EXPECT_EQ(color, copy_quad->color); | 503 EXPECT_EQ(color, copy_quad->color); |
504 EXPECT_EQ(force_anti_aliasing_off, copy_quad->force_anti_aliasing_off); | 504 EXPECT_EQ(force_anti_aliasing_off, copy_quad->force_anti_aliasing_off); |
505 } | 505 } |
506 | 506 |
507 TEST(DrawQuadTest, CopyStreamVideoDrawQuad) { | 507 TEST(DrawQuadTest, CopyStreamVideoDrawQuad) { |
508 gfx::Rect opaque_rect(33, 47, 10, 12); | 508 gfx::Rect opaque_rect(33, 47, 10, 12); |
509 gfx::Rect visible_rect(40, 50, 30, 20); | 509 gfx::Rect visible_rect(40, 50, 30, 20); |
510 ResourceProvider::ResourceId resource_id = 64; | 510 ResourceId resource_id = 64; |
511 gfx::Transform matrix = gfx::Transform(0.5, 0.25, 1, 0.75, 0, 1); | 511 gfx::Transform matrix = gfx::Transform(0.5, 0.25, 1, 0.75, 0, 1); |
512 CREATE_SHARED_STATE(); | 512 CREATE_SHARED_STATE(); |
513 | 513 |
514 CREATE_QUAD_4_NEW( | 514 CREATE_QUAD_4_NEW( |
515 StreamVideoDrawQuad, opaque_rect, visible_rect, resource_id, matrix); | 515 StreamVideoDrawQuad, opaque_rect, visible_rect, resource_id, matrix); |
516 EXPECT_EQ(DrawQuad::STREAM_VIDEO_CONTENT, copy_quad->material); | 516 EXPECT_EQ(DrawQuad::STREAM_VIDEO_CONTENT, copy_quad->material); |
517 EXPECT_EQ(visible_rect, copy_quad->visible_rect); | 517 EXPECT_EQ(visible_rect, copy_quad->visible_rect); |
518 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); | 518 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); |
519 EXPECT_EQ(resource_id, copy_quad->resource_id); | 519 EXPECT_EQ(resource_id, copy_quad->resource_id); |
520 EXPECT_EQ(matrix, copy_quad->matrix); | 520 EXPECT_EQ(matrix, copy_quad->matrix); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 EXPECT_EQ(nearest_neighbor, copy_quad->nearest_neighbor); | 635 EXPECT_EQ(nearest_neighbor, copy_quad->nearest_neighbor); |
636 } | 636 } |
637 | 637 |
638 TEST(DrawQuadTest, CopyYUVVideoDrawQuad) { | 638 TEST(DrawQuadTest, CopyYUVVideoDrawQuad) { |
639 gfx::Rect opaque_rect(33, 47, 10, 12); | 639 gfx::Rect opaque_rect(33, 47, 10, 12); |
640 gfx::Rect visible_rect(40, 50, 30, 20); | 640 gfx::Rect visible_rect(40, 50, 30, 20); |
641 gfx::RectF ya_tex_coord_rect(40, 50, 30, 20); | 641 gfx::RectF ya_tex_coord_rect(40, 50, 30, 20); |
642 gfx::RectF uv_tex_coord_rect(20, 25, 15, 10); | 642 gfx::RectF uv_tex_coord_rect(20, 25, 15, 10); |
643 gfx::Size ya_tex_size(32, 68); | 643 gfx::Size ya_tex_size(32, 68); |
644 gfx::Size uv_tex_size(41, 51); | 644 gfx::Size uv_tex_size(41, 51); |
645 ResourceProvider::ResourceId y_plane_resource_id = 45; | 645 ResourceId y_plane_resource_id = 45; |
646 ResourceProvider::ResourceId u_plane_resource_id = 532; | 646 ResourceId u_plane_resource_id = 532; |
647 ResourceProvider::ResourceId v_plane_resource_id = 4; | 647 ResourceId v_plane_resource_id = 4; |
648 ResourceProvider::ResourceId a_plane_resource_id = 63; | 648 ResourceId a_plane_resource_id = 63; |
649 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::JPEG; | 649 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::JPEG; |
650 CREATE_SHARED_STATE(); | 650 CREATE_SHARED_STATE(); |
651 | 651 |
652 CREATE_QUAD_11_NEW(YUVVideoDrawQuad, opaque_rect, visible_rect, | 652 CREATE_QUAD_11_NEW(YUVVideoDrawQuad, opaque_rect, visible_rect, |
653 ya_tex_coord_rect, uv_tex_coord_rect, ya_tex_size, | 653 ya_tex_coord_rect, uv_tex_coord_rect, ya_tex_size, |
654 uv_tex_size, y_plane_resource_id, u_plane_resource_id, | 654 uv_tex_size, y_plane_resource_id, u_plane_resource_id, |
655 v_plane_resource_id, a_plane_resource_id, color_space); | 655 v_plane_resource_id, a_plane_resource_id, color_space); |
656 EXPECT_EQ(DrawQuad::YUV_VIDEO_CONTENT, copy_quad->material); | 656 EXPECT_EQ(DrawQuad::YUV_VIDEO_CONTENT, copy_quad->material); |
657 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); | 657 EXPECT_EQ(opaque_rect, copy_quad->opaque_rect); |
658 EXPECT_EQ(visible_rect, copy_quad->visible_rect); | 658 EXPECT_EQ(visible_rect, copy_quad->visible_rect); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 EXPECT_EQ(texture_size, copy_quad->texture_size); | 718 EXPECT_EQ(texture_size, copy_quad->texture_size); |
719 EXPECT_EQ(nearest_neighbor, copy_quad->nearest_neighbor); | 719 EXPECT_EQ(nearest_neighbor, copy_quad->nearest_neighbor); |
720 EXPECT_EQ(texture_format, copy_quad->texture_format); | 720 EXPECT_EQ(texture_format, copy_quad->texture_format); |
721 EXPECT_EQ(content_rect, copy_quad->content_rect); | 721 EXPECT_EQ(content_rect, copy_quad->content_rect); |
722 EXPECT_EQ(contents_scale, copy_quad->contents_scale); | 722 EXPECT_EQ(contents_scale, copy_quad->contents_scale); |
723 EXPECT_EQ(raster_source, copy_quad->raster_source); | 723 EXPECT_EQ(raster_source, copy_quad->raster_source); |
724 } | 724 } |
725 | 725 |
726 class DrawQuadIteratorTest : public testing::Test { | 726 class DrawQuadIteratorTest : public testing::Test { |
727 protected: | 727 protected: |
728 ResourceProvider::ResourceId IncrementResourceId( | 728 ResourceId IncrementResourceId(ResourceId id) { |
729 ResourceProvider::ResourceId id) { | |
730 ++num_resources_; | 729 ++num_resources_; |
731 return id + 1; | 730 return id + 1; |
732 } | 731 } |
733 | 732 |
734 int IterateAndCount(DrawQuad* quad) { | 733 int IterateAndCount(DrawQuad* quad) { |
735 num_resources_ = 0; | 734 num_resources_ = 0; |
736 quad->IterateResources(base::Bind( | 735 quad->IterateResources(base::Bind( |
737 &DrawQuadIteratorTest::IncrementResourceId, base::Unretained(this))); | 736 &DrawQuadIteratorTest::IncrementResourceId, base::Unretained(this))); |
738 return num_resources_; | 737 return num_resources_; |
739 } | 738 } |
(...skipping 19 matching lines...) Expand all Loading... |
759 | 758 |
760 CREATE_SHARED_STATE(); | 759 CREATE_SHARED_STATE(); |
761 CREATE_QUAD_3_NEW(DebugBorderDrawQuad, visible_rect, color, width); | 760 CREATE_QUAD_3_NEW(DebugBorderDrawQuad, visible_rect, color, width); |
762 EXPECT_EQ(0, IterateAndCount(quad_new)); | 761 EXPECT_EQ(0, IterateAndCount(quad_new)); |
763 } | 762 } |
764 | 763 |
765 TEST_F(DrawQuadIteratorTest, IOSurfaceDrawQuad) { | 764 TEST_F(DrawQuadIteratorTest, IOSurfaceDrawQuad) { |
766 gfx::Rect opaque_rect(33, 47, 10, 12); | 765 gfx::Rect opaque_rect(33, 47, 10, 12); |
767 gfx::Rect visible_rect(40, 50, 30, 20); | 766 gfx::Rect visible_rect(40, 50, 30, 20); |
768 gfx::Size size(58, 95); | 767 gfx::Size size(58, 95); |
769 ResourceProvider::ResourceId resource_id = 72; | 768 ResourceId resource_id = 72; |
770 IOSurfaceDrawQuad::Orientation orientation = IOSurfaceDrawQuad::UNFLIPPED; | 769 IOSurfaceDrawQuad::Orientation orientation = IOSurfaceDrawQuad::UNFLIPPED; |
771 | 770 |
772 CREATE_SHARED_STATE(); | 771 CREATE_SHARED_STATE(); |
773 CREATE_QUAD_5_NEW(IOSurfaceDrawQuad, | 772 CREATE_QUAD_5_NEW(IOSurfaceDrawQuad, |
774 opaque_rect, | 773 opaque_rect, |
775 visible_rect, | 774 visible_rect, |
776 size, | 775 size, |
777 resource_id, | 776 resource_id, |
778 orientation); | 777 orientation); |
779 EXPECT_EQ(resource_id, quad_new->io_surface_resource_id); | 778 EXPECT_EQ(resource_id, quad_new->io_surface_resource_id); |
780 EXPECT_EQ(1, IterateAndCount(quad_new)); | 779 EXPECT_EQ(1, IterateAndCount(quad_new)); |
781 EXPECT_EQ(resource_id + 1, quad_new->io_surface_resource_id); | 780 EXPECT_EQ(resource_id + 1, quad_new->io_surface_resource_id); |
782 } | 781 } |
783 | 782 |
784 TEST_F(DrawQuadIteratorTest, RenderPassDrawQuad) { | 783 TEST_F(DrawQuadIteratorTest, RenderPassDrawQuad) { |
785 gfx::Rect visible_rect(40, 50, 30, 20); | 784 gfx::Rect visible_rect(40, 50, 30, 20); |
786 RenderPassId render_pass_id(22, 64); | 785 RenderPassId render_pass_id(22, 64); |
787 ResourceProvider::ResourceId mask_resource_id = 78; | 786 ResourceId mask_resource_id = 78; |
788 gfx::Vector2dF mask_uv_scale(33.f, 19.f); | 787 gfx::Vector2dF mask_uv_scale(33.f, 19.f); |
789 gfx::Size mask_texture_size(128, 134); | 788 gfx::Size mask_texture_size(128, 134); |
790 FilterOperations filters; | 789 FilterOperations filters; |
791 filters.Append(FilterOperation::CreateBlurFilter(1.f)); | 790 filters.Append(FilterOperation::CreateBlurFilter(1.f)); |
792 gfx::Vector2dF filters_scale(2.f, 3.f); | 791 gfx::Vector2dF filters_scale(2.f, 3.f); |
793 FilterOperations background_filters; | 792 FilterOperations background_filters; |
794 background_filters.Append( | 793 background_filters.Append( |
795 FilterOperation::CreateGrayscaleFilter(1.f)); | 794 FilterOperation::CreateGrayscaleFilter(1.f)); |
796 | 795 |
797 RenderPassId copied_render_pass_id(235, 11); | 796 RenderPassId copied_render_pass_id(235, 11); |
(...skipping 24 matching lines...) Expand all Loading... |
822 | 821 |
823 CREATE_SHARED_STATE(); | 822 CREATE_SHARED_STATE(); |
824 CREATE_QUAD_3_NEW( | 823 CREATE_QUAD_3_NEW( |
825 SolidColorDrawQuad, visible_rect, color, force_anti_aliasing_off); | 824 SolidColorDrawQuad, visible_rect, color, force_anti_aliasing_off); |
826 EXPECT_EQ(0, IterateAndCount(quad_new)); | 825 EXPECT_EQ(0, IterateAndCount(quad_new)); |
827 } | 826 } |
828 | 827 |
829 TEST_F(DrawQuadIteratorTest, StreamVideoDrawQuad) { | 828 TEST_F(DrawQuadIteratorTest, StreamVideoDrawQuad) { |
830 gfx::Rect opaque_rect(33, 47, 10, 12); | 829 gfx::Rect opaque_rect(33, 47, 10, 12); |
831 gfx::Rect visible_rect(40, 50, 30, 20); | 830 gfx::Rect visible_rect(40, 50, 30, 20); |
832 ResourceProvider::ResourceId resource_id = 64; | 831 ResourceId resource_id = 64; |
833 gfx::Transform matrix = gfx::Transform(0.5, 0.25, 1, 0.75, 0, 1); | 832 gfx::Transform matrix = gfx::Transform(0.5, 0.25, 1, 0.75, 0, 1); |
834 | 833 |
835 CREATE_SHARED_STATE(); | 834 CREATE_SHARED_STATE(); |
836 CREATE_QUAD_4_NEW( | 835 CREATE_QUAD_4_NEW( |
837 StreamVideoDrawQuad, opaque_rect, visible_rect, resource_id, matrix); | 836 StreamVideoDrawQuad, opaque_rect, visible_rect, resource_id, matrix); |
838 EXPECT_EQ(resource_id, quad_new->resource_id); | 837 EXPECT_EQ(resource_id, quad_new->resource_id); |
839 EXPECT_EQ(1, IterateAndCount(quad_new)); | 838 EXPECT_EQ(1, IterateAndCount(quad_new)); |
840 EXPECT_EQ(resource_id + 1, quad_new->resource_id); | 839 EXPECT_EQ(resource_id + 1, quad_new->resource_id); |
841 } | 840 } |
842 | 841 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 EXPECT_EQ(resource_id + 1, quad_new->resource_id); | 899 EXPECT_EQ(resource_id + 1, quad_new->resource_id); |
901 } | 900 } |
902 | 901 |
903 TEST_F(DrawQuadIteratorTest, YUVVideoDrawQuad) { | 902 TEST_F(DrawQuadIteratorTest, YUVVideoDrawQuad) { |
904 gfx::Rect opaque_rect(33, 47, 10, 12); | 903 gfx::Rect opaque_rect(33, 47, 10, 12); |
905 gfx::Rect visible_rect(40, 50, 30, 20); | 904 gfx::Rect visible_rect(40, 50, 30, 20); |
906 gfx::RectF ya_tex_coord_rect(0.0f, 0.0f, 0.75f, 0.5f); | 905 gfx::RectF ya_tex_coord_rect(0.0f, 0.0f, 0.75f, 0.5f); |
907 gfx::RectF uv_tex_coord_rect(0.0f, 0.0f, 0.375f, 0.25f); | 906 gfx::RectF uv_tex_coord_rect(0.0f, 0.0f, 0.375f, 0.25f); |
908 gfx::Size ya_tex_size(32, 68); | 907 gfx::Size ya_tex_size(32, 68); |
909 gfx::Size uv_tex_size(41, 51); | 908 gfx::Size uv_tex_size(41, 51); |
910 ResourceProvider::ResourceId y_plane_resource_id = 45; | 909 ResourceId y_plane_resource_id = 45; |
911 ResourceProvider::ResourceId u_plane_resource_id = 532; | 910 ResourceId u_plane_resource_id = 532; |
912 ResourceProvider::ResourceId v_plane_resource_id = 4; | 911 ResourceId v_plane_resource_id = 4; |
913 ResourceProvider::ResourceId a_plane_resource_id = 63; | 912 ResourceId a_plane_resource_id = 63; |
914 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::JPEG; | 913 YUVVideoDrawQuad::ColorSpace color_space = YUVVideoDrawQuad::JPEG; |
915 | 914 |
916 CREATE_SHARED_STATE(); | 915 CREATE_SHARED_STATE(); |
917 CREATE_QUAD_11_NEW(YUVVideoDrawQuad, opaque_rect, visible_rect, | 916 CREATE_QUAD_11_NEW(YUVVideoDrawQuad, opaque_rect, visible_rect, |
918 ya_tex_coord_rect, uv_tex_coord_rect, ya_tex_size, | 917 ya_tex_coord_rect, uv_tex_coord_rect, ya_tex_size, |
919 uv_tex_size, y_plane_resource_id, u_plane_resource_id, | 918 uv_tex_size, y_plane_resource_id, u_plane_resource_id, |
920 v_plane_resource_id, a_plane_resource_id, color_space); | 919 v_plane_resource_id, a_plane_resource_id, color_space); |
921 EXPECT_EQ(DrawQuad::YUV_VIDEO_CONTENT, copy_quad->material); | 920 EXPECT_EQ(DrawQuad::YUV_VIDEO_CONTENT, copy_quad->material); |
922 EXPECT_EQ(y_plane_resource_id, quad_new->y_plane_resource_id); | 921 EXPECT_EQ(y_plane_resource_id, quad_new->y_plane_resource_id); |
923 EXPECT_EQ(u_plane_resource_id, quad_new->u_plane_resource_id); | 922 EXPECT_EQ(u_plane_resource_id, quad_new->u_plane_resource_id); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 LOG(ERROR) << "YUVVideoDrawQuad " << sizeof(YUVVideoDrawQuad); | 1037 LOG(ERROR) << "YUVVideoDrawQuad " << sizeof(YUVVideoDrawQuad); |
1039 break; | 1038 break; |
1040 case DrawQuad::INVALID: | 1039 case DrawQuad::INVALID: |
1041 break; | 1040 break; |
1042 } | 1041 } |
1043 } | 1042 } |
1044 } | 1043 } |
1045 | 1044 |
1046 } // namespace | 1045 } // namespace |
1047 } // namespace cc | 1046 } // namespace cc |
OLD | NEW |