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

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

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 | 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 18 matching lines...) Expand all
29 static scoped_ptr<TestWebGraphicsContext3D> Create(); 29 static scoped_ptr<TestWebGraphicsContext3D> Create();
30 30
31 virtual ~TestWebGraphicsContext3D(); 31 virtual ~TestWebGraphicsContext3D();
32 32
33 virtual bool makeContextCurrent(); 33 virtual bool makeContextCurrent();
34 34
35 virtual void reshapeWithScaleFactor( 35 virtual void reshapeWithScaleFactor(
36 int width, int height, float scale_factor); 36 int width, int height, float scale_factor);
37 37
38 virtual bool isContextLost(); 38 virtual bool isContextLost();
39 virtual WebKit::WGC3Denum getGraphicsResetStatusARB();
40 39
41 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader); 40 virtual void attachShader(WebKit::WebGLId program, WebKit::WebGLId shader);
42 virtual void bindFramebuffer( 41 virtual void bindFramebuffer(
43 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer); 42 WebKit::WGC3Denum target, WebKit::WebGLId framebuffer);
44 virtual void bindRenderbuffer( 43 virtual void bindRenderbuffer(
45 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer); 44 WebKit::WGC3Denum target, WebKit::WebGLId renderbuffer);
46 virtual void bindTexture( 45 virtual void bindTexture(
47 WebKit::WGC3Denum target, 46 WebKit::WGC3Denum target,
48 WebKit::WebGLId texture_id); 47 WebKit::WebGLId texture_id);
49 48
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 177 }
179 178
180 size_t NumTextures() const; 179 size_t NumTextures() const;
181 WebKit::WebGLId TextureAt(int i) const; 180 WebKit::WebGLId TextureAt(int i) const;
182 181
183 size_t NumUsedTextures() const { return used_textures_.size(); } 182 size_t NumUsedTextures() const { return used_textures_.size(); }
184 bool UsedTexture(int texture) const { 183 bool UsedTexture(int texture) const {
185 return ContainsKey(used_textures_, texture); 184 return ContainsKey(used_textures_, texture);
186 } 185 }
187 void ResetUsedTextures() { used_textures_.clear(); } 186 void ResetUsedTextures() { used_textures_.clear(); }
187 unsigned AllocateTestTextureForExternalUse();
piman 2013/11/01 23:15:35 leftover/merge conflict?
188 188
189 void set_support_swapbuffers_complete_callback(bool support) { 189 void set_support_swapbuffers_complete_callback(bool support) {
190 test_capabilities_.swapbuffers_complete_callback = support; 190 test_capabilities_.swapbuffers_complete_callback = support;
191 } 191 }
192 void set_have_extension_io_surface(bool have) { 192 void set_have_extension_io_surface(bool have) {
193 test_capabilities_.iosurface = have; 193 test_capabilities_.iosurface = have;
194 test_capabilities_.texture_rectangle = have; 194 test_capabilities_.texture_rectangle = have;
195 } 195 }
196 void set_have_extension_egl_image(bool have) { 196 void set_have_extension_egl_image(bool have) {
197 test_capabilities_.egl_image_external = have; 197 test_capabilities_.egl_image_external = have;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 scoped_refptr<Namespace> namespace_; 317 scoped_refptr<Namespace> namespace_;
318 static Namespace* shared_namespace_; 318 static Namespace* shared_namespace_;
319 319
320 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 320 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
321 }; 321 };
322 322
323 } // namespace cc 323 } // namespace cc
324 324
325 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 325 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698