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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 486853002: cc: Use a normal texture for background texture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits in unittests Created 6 years, 4 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/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host_impl.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 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 <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 } 300 }
301 void set_have_discard_framebuffer(bool have) { 301 void set_have_discard_framebuffer(bool have) {
302 test_capabilities_.gpu.discard_framebuffer = have; 302 test_capabilities_.gpu.discard_framebuffer = have;
303 } 303 }
304 void set_support_compressed_texture_etc1(bool support) { 304 void set_support_compressed_texture_etc1(bool support) {
305 test_capabilities_.gpu.texture_format_etc1 = support; 305 test_capabilities_.gpu.texture_format_etc1 = support;
306 } 306 }
307 void set_support_texture_storage(bool support) { 307 void set_support_texture_storage(bool support) {
308 test_capabilities_.gpu.texture_storage = support; 308 test_capabilities_.gpu.texture_storage = support;
309 } 309 }
310 void set_support_texture_usage(bool support) {
311 test_capabilities_.gpu.texture_usage = support;
312 }
310 void set_support_sync_query(bool support) { 313 void set_support_sync_query(bool support) {
311 test_capabilities_.gpu.sync_query = support; 314 test_capabilities_.gpu.sync_query = support;
312 } 315 }
313 316
314 // When this context is lost, all contexts in its share group are also lost. 317 // When this context is lost, all contexts in its share group are also lost.
315 void add_share_group_context(TestWebGraphicsContext3D* context3d) { 318 void add_share_group_context(TestWebGraphicsContext3D* context3d) {
316 shared_contexts_.push_back(context3d); 319 shared_contexts_.push_back(context3d);
317 } 320 }
318 321
319 void set_max_texture_size(int size) { max_texture_size_ = size; } 322 void set_max_texture_size(int size) { max_texture_size_ = size; }
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 450
448 scoped_refptr<Namespace> namespace_; 451 scoped_refptr<Namespace> namespace_;
449 static Namespace* shared_namespace_; 452 static Namespace* shared_namespace_;
450 453
451 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 454 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
452 }; 455 };
453 456
454 } // namespace cc 457 } // namespace cc
455 458
456 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 459 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698