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/test_web_graphics_context_3d.h

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 years, 10 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
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/trees/layer_tree_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 void set_support_texture_rectangle(bool support) { 338 void set_support_texture_rectangle(bool support) {
339 test_capabilities_.texture_rectangle = support; 339 test_capabilities_.texture_rectangle = support;
340 } 340 }
341 void set_support_texture_half_float_linear(bool support) { 341 void set_support_texture_half_float_linear(bool support) {
342 test_capabilities_.texture_half_float_linear = support; 342 test_capabilities_.texture_half_float_linear = support;
343 } 343 }
344 void set_msaa_is_slow(bool msaa_is_slow) { 344 void set_msaa_is_slow(bool msaa_is_slow) {
345 test_capabilities_.msaa_is_slow = msaa_is_slow; 345 test_capabilities_.msaa_is_slow = msaa_is_slow;
346 } 346 }
347 void set_gpu_rasterization(bool gpu_rasterization) {
348 test_capabilities_.gpu_rasterization = gpu_rasterization;
349 }
347 350
348 // When this context is lost, all contexts in its share group are also lost. 351 // When this context is lost, all contexts in its share group are also lost.
349 void add_share_group_context(TestWebGraphicsContext3D* context3d) { 352 void add_share_group_context(TestWebGraphicsContext3D* context3d) {
350 shared_contexts_.push_back(context3d); 353 shared_contexts_.push_back(context3d);
351 } 354 }
352 355
353 void set_max_texture_size(int size) { max_texture_size_ = size; } 356 void set_max_texture_size(int size) { max_texture_size_ = size; }
354 357
355 static const GLuint kExternalTextureId; 358 static const GLuint kExternalTextureId;
356 virtual GLuint NextTextureId(); 359 virtual GLuint NextTextureId();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 486
484 scoped_refptr<Namespace> namespace_; 487 scoped_refptr<Namespace> namespace_;
485 static Namespace* shared_namespace_; 488 static Namespace* shared_namespace_;
486 489
487 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 490 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
488 }; 491 };
489 492
490 } // namespace cc 493 } // namespace cc
491 494
492 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 495 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698