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

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

Issue 105553003: Use GLES2Interface in GLRenderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 } 191 }
192 192
193 size_t NumTextures() const; 193 size_t NumTextures() const;
194 blink::WebGLId TextureAt(int i) const; 194 blink::WebGLId TextureAt(int i) const;
195 195
196 size_t NumUsedTextures() const { return used_textures_.size(); } 196 size_t NumUsedTextures() const { return used_textures_.size(); }
197 bool UsedTexture(int texture) const { 197 bool UsedTexture(int texture) const {
198 return ContainsKey(used_textures_, texture); 198 return ContainsKey(used_textures_, texture);
199 } 199 }
200 void ResetUsedTextures() { used_textures_.clear(); } 200 void ResetUsedTextures() { used_textures_.clear(); }
201 unsigned AllocateTestTextureForExternalUse();
piman 2013/12/06 00:49:44 You again!
201 202
202 void set_support_swapbuffers_complete_callback(bool support) { 203 void set_support_swapbuffers_complete_callback(bool support) {
203 test_capabilities_.swapbuffers_complete_callback = support; 204 test_capabilities_.swapbuffers_complete_callback = support;
204 } 205 }
205 void set_have_extension_io_surface(bool have) { 206 void set_have_extension_io_surface(bool have) {
206 test_capabilities_.iosurface = have; 207 test_capabilities_.iosurface = have;
207 test_capabilities_.texture_rectangle = have; 208 test_capabilities_.texture_rectangle = have;
208 } 209 }
209 void set_have_extension_egl_image(bool have) { 210 void set_have_extension_egl_image(bool have) {
210 test_capabilities_.egl_image_external = have; 211 test_capabilities_.egl_image_external = have;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 368
368 scoped_refptr<Namespace> namespace_; 369 scoped_refptr<Namespace> namespace_;
369 static Namespace* shared_namespace_; 370 static Namespace* shared_namespace_;
370 371
371 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 372 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
372 }; 373 };
373 374
374 } // namespace cc 375 } // namespace cc
375 376
376 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 377 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« cc/test/test_gles2_interface.cc ('K') | « cc/test/test_gles2_interface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698