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

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

Issue 1781093002: Add CONTEXT_TYPE_OPENGLES2_PEPPER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rev bug list json version Created 4 years, 9 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/output/gl_renderer.cc ('k') | cc/trees/layer_tree_host_impl_unittest.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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } 343 }
344 void set_support_image(bool support) { 344 void set_support_image(bool support) {
345 test_capabilities_.gpu.image = support; 345 test_capabilities_.gpu.image = support;
346 } 346 }
347 void set_support_texture_rectangle(bool support) { 347 void set_support_texture_rectangle(bool support) {
348 test_capabilities_.gpu.texture_rectangle = support; 348 test_capabilities_.gpu.texture_rectangle = support;
349 } 349 }
350 void set_support_texture_half_float_linear(bool support) { 350 void set_support_texture_half_float_linear(bool support) {
351 test_capabilities_.gpu.texture_half_float_linear = support; 351 test_capabilities_.gpu.texture_half_float_linear = support;
352 } 352 }
353 void set_msaa_is_slow(bool msaa_is_slow) {
354 test_capabilities_.gpu.msaa_is_slow = msaa_is_slow;
355 }
353 356
354 // When this context is lost, all contexts in its share group are also lost. 357 // When this context is lost, all contexts in its share group are also lost.
355 void add_share_group_context(TestWebGraphicsContext3D* context3d) { 358 void add_share_group_context(TestWebGraphicsContext3D* context3d) {
356 shared_contexts_.push_back(context3d); 359 shared_contexts_.push_back(context3d);
357 } 360 }
358 361
359 void set_max_texture_size(int size) { max_texture_size_ = size; } 362 void set_max_texture_size(int size) { max_texture_size_ = size; }
360 363
361 static const GLuint kExternalTextureId; 364 static const GLuint kExternalTextureId;
362 virtual GLuint NextTextureId(); 365 virtual GLuint NextTextureId();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 499
497 scoped_refptr<Namespace> namespace_; 500 scoped_refptr<Namespace> namespace_;
498 static Namespace* shared_namespace_; 501 static Namespace* shared_namespace_;
499 502
500 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 503 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
501 }; 504 };
502 505
503 } // namespace cc 506 } // namespace cc
504 507
505 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 508 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698