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

Side by Side Diff: cc/quads/draw_quad_unittest.cc

Issue 16085003: Update refernces to Blink's Platform API (cc) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « cc/output/texture_copier.cc ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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"
11 #include "cc/base/math_util.h" 11 #include "cc/base/math_util.h"
12 #include "cc/quads/checkerboard_draw_quad.h" 12 #include "cc/quads/checkerboard_draw_quad.h"
13 #include "cc/quads/debug_border_draw_quad.h" 13 #include "cc/quads/debug_border_draw_quad.h"
14 #include "cc/quads/io_surface_draw_quad.h" 14 #include "cc/quads/io_surface_draw_quad.h"
15 #include "cc/quads/picture_draw_quad.h" 15 #include "cc/quads/picture_draw_quad.h"
16 #include "cc/quads/render_pass_draw_quad.h" 16 #include "cc/quads/render_pass_draw_quad.h"
17 #include "cc/quads/solid_color_draw_quad.h" 17 #include "cc/quads/solid_color_draw_quad.h"
18 #include "cc/quads/stream_video_draw_quad.h" 18 #include "cc/quads/stream_video_draw_quad.h"
19 #include "cc/quads/texture_draw_quad.h" 19 #include "cc/quads/texture_draw_quad.h"
20 #include "cc/quads/tile_draw_quad.h" 20 #include "cc/quads/tile_draw_quad.h"
21 #include "cc/quads/yuv_video_draw_quad.h" 21 #include "cc/quads/yuv_video_draw_quad.h"
22 #include "cc/resources/picture_pile_impl.h" 22 #include "cc/resources/picture_pile_impl.h"
23 #include "cc/test/geometry_test_utils.h" 23 #include "cc/test/geometry_test_utils.h"
24 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 25 #include "third_party/WebKit/public/platform/WebFilterOperations.h"
26 #include "third_party/skia/include/effects/SkBlurImageFilter.h" 26 #include "third_party/skia/include/effects/SkBlurImageFilter.h"
27 #include "ui/gfx/transform.h" 27 #include "ui/gfx/transform.h"
28 28
29 namespace cc { 29 namespace cc {
30 namespace { 30 namespace {
31 31
32 TEST(DrawQuadTest, CopySharedQuadState) { 32 TEST(DrawQuadTest, CopySharedQuadState) {
33 gfx::Transform quad_transform = gfx::Transform(1.0, 0.0, 0.5, 1.0, 0.5, 0.0); 33 gfx::Transform quad_transform = gfx::Transform(1.0, 0.0, 0.5, 1.0, 0.5, 0.0);
34 gfx::Size content_bounds(26, 28); 34 gfx::Size content_bounds(26, 28);
35 gfx::Rect visible_content_rect(10, 12, 14, 16); 35 gfx::Rect visible_content_rect(10, 12, 14, 16);
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 swizzle_contents, 891 swizzle_contents,
892 content_rect, 892 content_rect,
893 contents_scale, 893 contents_scale,
894 can_draw_direct_to_backbuffer, 894 can_draw_direct_to_backbuffer,
895 picture_pile); 895 picture_pile);
896 EXPECT_EQ(0, IterateAndCount(quad_new.get())); 896 EXPECT_EQ(0, IterateAndCount(quad_new.get()));
897 } 897 }
898 898
899 } // namespace 899 } // namespace
900 } // namespace cc 900 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/texture_copier.cc ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698