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

Side by Side Diff: cc/test/layer_tree_pixel_resource_test.cc

Issue 737943002: Update from https://crrev.com/304715 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « cc/test/layer_tree_host_common_test.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/layer_tree_pixel_resource_test.h" 5 #include "cc/test/layer_tree_pixel_resource_test.h"
6 6
7 #include "cc/layers/layer.h" 7 #include "cc/layers/layer.h"
8 #include "cc/resources/bitmap_raster_worker_pool.h" 8 #include "cc/resources/bitmap_raster_worker_pool.h"
9 #include "cc/resources/gpu_raster_worker_pool.h" 9 #include "cc/resources/gpu_raster_worker_pool.h"
10 #include "cc/resources/one_copy_raster_worker_pool.h" 10 #include "cc/resources/one_copy_raster_worker_pool.h"
11 #include "cc/resources/pixel_buffer_raster_worker_pool.h" 11 #include "cc/resources/pixel_buffer_raster_worker_pool.h"
12 #include "cc/resources/raster_worker_pool.h" 12 #include "cc/resources/raster_worker_pool.h"
13 #include "cc/resources/resource_pool.h" 13 #include "cc/resources/resource_pool.h"
14 #include "cc/resources/zero_copy_raster_worker_pool.h" 14 #include "cc/resources/zero_copy_raster_worker_pool.h"
15 #include "cc/test/fake_output_surface.h" 15 #include "cc/test/fake_output_surface.h"
16 #include "gpu/GLES2/gl2extchromium.h" 16 #include "gpu/GLES2/gl2extchromium.h"
17 17
18 namespace cc { 18 namespace cc {
19 19
20 namespace { 20 namespace {
21 21
22 bool IsTestCaseSupported(PixelResourceTestCase test_case) { 22 bool IsTestCaseSupported(PixelResourceTestCase test_case) {
23 switch (test_case) { 23 switch (test_case) {
24 case SOFTWARE: 24 case SOFTWARE:
25 case GL_GPU_RASTER_2D_DRAW: 25 case GL_GPU_RASTER_2D_DRAW:
26 case GL_ZERO_COPY_2D_DRAW: 26 case GL_ZERO_COPY_2D_DRAW:
27 case GL_ZERO_COPY_RECT_DRAW: 27 case GL_ZERO_COPY_RECT_DRAW:
28 case GL_ONE_COPY_2D_STAGING_2D_DRAW:
28 case GL_ASYNC_UPLOAD_2D_DRAW: 29 case GL_ASYNC_UPLOAD_2D_DRAW:
29 return true; 30 return true;
30 case GL_ZERO_COPY_EXTERNAL_DRAW: 31 case GL_ZERO_COPY_EXTERNAL_DRAW:
31 case GL_ONE_COPY_2D_STAGING_2D_DRAW:
32 case GL_ONE_COPY_RECT_STAGING_2D_DRAW: 32 case GL_ONE_COPY_RECT_STAGING_2D_DRAW:
33 case GL_ONE_COPY_EXTERNAL_STAGING_2D_DRAW: 33 case GL_ONE_COPY_EXTERNAL_STAGING_2D_DRAW:
34 // These should all be enabled in practice. 34 // These should all be enabled in practice.
35 // TODO(reveman): one copy not supported in unit tests yet. 35 // TODO(reveman): one copy with rect not supported in unit tests yet.
36 // TODO(enne): look into getting texture external oes enabled. 36 // TODO(enne): look into getting texture external oes enabled.
37 return false; 37 return false;
38 } 38 }
39 39
40 NOTREACHED(); 40 NOTREACHED();
41 return false; 41 return false;
42 } 42 }
43 43
44 } // namespace 44 } // namespace
45 45
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 if (!IsTestCaseSupported(test_case_)) 216 if (!IsTestCaseSupported(test_case_))
217 return; 217 return;
218 RunPixelTest(test_type_, content_root, file_name); 218 RunPixelTest(test_type_, content_root, file_name);
219 } 219 }
220 220
221 ParameterizedPixelResourceTest::ParameterizedPixelResourceTest() 221 ParameterizedPixelResourceTest::ParameterizedPixelResourceTest()
222 : LayerTreeHostPixelResourceTest(GetParam()) { 222 : LayerTreeHostPixelResourceTest(GetParam()) {
223 } 223 }
224 224
225 } // namespace cc 225 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_host_common_test.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698