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

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

Issue 635543002: cc: Make ResourceProvider use bindless Produce/ConsumeTextureCHROMIUM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove redundant func. Created 5 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/test/ordered_texture_map.cc ('k') | cc/test/test_web_graphics_context_3d.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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 friend class base::RefCountedThreadSafe<Namespace>; 434 friend class base::RefCountedThreadSafe<Namespace>;
435 ~Namespace(); 435 ~Namespace();
436 DISALLOW_COPY_AND_ASSIGN(Namespace); 436 DISALLOW_COPY_AND_ASSIGN(Namespace);
437 }; 437 };
438 438
439 TestWebGraphicsContext3D(); 439 TestWebGraphicsContext3D();
440 440
441 void CreateNamespace(); 441 void CreateNamespace();
442 GLuint BoundTextureId(GLenum target); 442 GLuint BoundTextureId(GLenum target);
443 scoped_refptr<TestTexture> BoundTexture(GLenum target); 443 scoped_refptr<TestTexture> BoundTexture(GLenum target);
444 scoped_refptr<TestTexture> UnboundTexture(GLuint texture);
444 void CheckTextureIsBound(GLenum target); 445 void CheckTextureIsBound(GLenum target);
445 446
446 unsigned context_id_; 447 unsigned context_id_;
447 ContextProvider::Capabilities test_capabilities_; 448 ContextProvider::Capabilities test_capabilities_;
448 int times_bind_texture_succeeds_; 449 int times_bind_texture_succeeds_;
449 int times_end_query_succeeds_; 450 int times_end_query_succeeds_;
450 bool context_lost_; 451 bool context_lost_;
451 int times_map_buffer_chromium_succeeds_; 452 int times_map_buffer_chromium_succeeds_;
452 int current_used_transfer_buffer_usage_bytes_; 453 int current_used_transfer_buffer_usage_bytes_;
453 int max_used_transfer_buffer_usage_bytes_; 454 int max_used_transfer_buffer_usage_bytes_;
(...skipping 24 matching lines...) Expand all
478 479
479 scoped_refptr<Namespace> namespace_; 480 scoped_refptr<Namespace> namespace_;
480 static Namespace* shared_namespace_; 481 static Namespace* shared_namespace_;
481 482
482 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 483 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
483 }; 484 };
484 485
485 } // namespace cc 486 } // namespace cc
486 487
487 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 488 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/ordered_texture_map.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698