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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (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/test_in_process_context_provider.cc ('k') | cc/trees/layer_tree_host.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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 void set_support_texture_storage(bool support) { 321 void set_support_texture_storage(bool support) {
322 test_capabilities_.gpu.texture_storage = support; 322 test_capabilities_.gpu.texture_storage = support;
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) {
331 test_capabilities_.gpu.image = support;
332 }
330 333
331 // When this context is lost, all contexts in its share group are also lost. 334 // When this context is lost, all contexts in its share group are also lost.
332 void add_share_group_context(TestWebGraphicsContext3D* context3d) { 335 void add_share_group_context(TestWebGraphicsContext3D* context3d) {
333 shared_contexts_.push_back(context3d); 336 shared_contexts_.push_back(context3d);
334 } 337 }
335 338
336 void set_max_texture_size(int size) { max_texture_size_ = size; } 339 void set_max_texture_size(int size) { max_texture_size_ = size; }
337 340
338 static const GLuint kExternalTextureId; 341 static const GLuint kExternalTextureId;
339 virtual GLuint NextTextureId(); 342 virtual GLuint NextTextureId();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 466
464 scoped_refptr<Namespace> namespace_; 467 scoped_refptr<Namespace> namespace_;
465 static Namespace* shared_namespace_; 468 static Namespace* shared_namespace_;
466 469
467 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 470 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
468 }; 471 };
469 472
470 } // namespace cc 473 } // namespace cc
471 474
472 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 475 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_in_process_context_provider.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698