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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/test_shared_bitmap_manager.cc ('k') | cc/trees/layer_tree_host_common.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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 void set_support_texture_usage(bool support) { 324 void set_support_texture_usage(bool support) {
325 test_capabilities_.gpu.texture_usage = support; 325 test_capabilities_.gpu.texture_usage = support;
326 } 326 }
327 void set_support_sync_query(bool support) { 327 void set_support_sync_query(bool support) {
328 test_capabilities_.gpu.sync_query = support; 328 test_capabilities_.gpu.sync_query = support;
329 } 329 }
330 void set_support_image(bool support) { 330 void set_support_image(bool support) {
331 test_capabilities_.gpu.image = support; 331 test_capabilities_.gpu.image = support;
332 } 332 }
333 void set_support_texture_rectangle(bool support) {
334 test_capabilities_.gpu.texture_rectangle = support;
335 }
333 336
334 // When this context is lost, all contexts in its share group are also lost. 337 // When this context is lost, all contexts in its share group are also lost.
335 void add_share_group_context(TestWebGraphicsContext3D* context3d) { 338 void add_share_group_context(TestWebGraphicsContext3D* context3d) {
336 shared_contexts_.push_back(context3d); 339 shared_contexts_.push_back(context3d);
337 } 340 }
338 341
339 void set_max_texture_size(int size) { max_texture_size_ = size; } 342 void set_max_texture_size(int size) { max_texture_size_ = size; }
340 343
341 static const GLuint kExternalTextureId; 344 static const GLuint kExternalTextureId;
342 virtual GLuint NextTextureId(); 345 virtual GLuint NextTextureId();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 469
467 scoped_refptr<Namespace> namespace_; 470 scoped_refptr<Namespace> namespace_;
468 static Namespace* shared_namespace_; 471 static Namespace* shared_namespace_;
469 472
470 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 473 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
471 }; 474 };
472 475
473 } // namespace cc 476 } // namespace cc
474 477
475 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 478 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_shared_bitmap_manager.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698