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

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, 10 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
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 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 friend class base::RefCountedThreadSafe<Namespace>; 438 friend class base::RefCountedThreadSafe<Namespace>;
439 ~Namespace(); 439 ~Namespace();
440 DISALLOW_COPY_AND_ASSIGN(Namespace); 440 DISALLOW_COPY_AND_ASSIGN(Namespace);
441 }; 441 };
442 442
443 TestWebGraphicsContext3D(); 443 TestWebGraphicsContext3D();
444 444
445 void CreateNamespace(); 445 void CreateNamespace();
446 GLuint BoundTextureId(GLenum target); 446 GLuint BoundTextureId(GLenum target);
447 scoped_refptr<TestTexture> BoundTexture(GLenum target); 447 scoped_refptr<TestTexture> BoundTexture(GLenum target);
448 scoped_refptr<TestTexture> UnboundTexture(GLuint texture);
448 void CheckTextureIsBound(GLenum target); 449 void CheckTextureIsBound(GLenum target);
449 450
450 unsigned context_id_; 451 unsigned context_id_;
451 ContextProvider::Capabilities test_capabilities_; 452 ContextProvider::Capabilities test_capabilities_;
452 int times_bind_texture_succeeds_; 453 int times_bind_texture_succeeds_;
453 int times_end_query_succeeds_; 454 int times_end_query_succeeds_;
454 bool context_lost_; 455 bool context_lost_;
455 int times_map_buffer_chromium_succeeds_; 456 int times_map_buffer_chromium_succeeds_;
456 int current_used_transfer_buffer_usage_bytes_; 457 int current_used_transfer_buffer_usage_bytes_;
457 int max_used_transfer_buffer_usage_bytes_; 458 int max_used_transfer_buffer_usage_bytes_;
(...skipping 24 matching lines...) Expand all
482 483
483 scoped_refptr<Namespace> namespace_; 484 scoped_refptr<Namespace> namespace_;
484 static Namespace* shared_namespace_; 485 static Namespace* shared_namespace_;
485 486
486 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 487 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
487 }; 488 };
488 489
489 } // namespace cc 490 } // namespace cc
490 491
491 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 492 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698