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

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

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest comments Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/context_provider.h » ('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_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_DEBUG_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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 void set_have_extension_egl_image(bool have) { 188 void set_have_extension_egl_image(bool have) {
189 test_capabilities_.egl_image_external = have; 189 test_capabilities_.egl_image_external = have;
190 } 190 }
191 void set_have_post_sub_buffer(bool have) { 191 void set_have_post_sub_buffer(bool have) {
192 test_capabilities_.post_sub_buffer = have; 192 test_capabilities_.post_sub_buffer = have;
193 } 193 }
194 void set_have_discard_framebuffer(bool have) { 194 void set_have_discard_framebuffer(bool have) {
195 test_capabilities_.discard_framebuffer = have; 195 test_capabilities_.discard_framebuffer = have;
196 } 196 }
197 void set_support_compressed_texture_etc1(bool support) {
198 test_capabilities_.texture_format_etc1 = support;
199 }
197 200
198 // When this context is lost, all contexts in its share group are also lost. 201 // When this context is lost, all contexts in its share group are also lost.
199 void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) { 202 void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) {
200 shared_contexts_.push_back(context3d); 203 shared_contexts_.push_back(context3d);
201 } 204 }
202 205
203 void set_max_texture_size(int size) { max_texture_size_ = size; } 206 void set_max_texture_size(int size) { max_texture_size_ = size; }
204 207
205 static const WebKit::WebGLId kExternalTextureId; 208 static const WebKit::WebGLId kExternalTextureId;
206 virtual WebKit::WebGLId NextTextureId(); 209 virtual WebKit::WebGLId NextTextureId();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 306
304 scoped_refptr<Namespace> namespace_; 307 scoped_refptr<Namespace> namespace_;
305 static Namespace* shared_namespace_; 308 static Namespace* shared_namespace_;
306 309
307 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 310 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
308 }; 311 };
309 312
310 } // namespace cc 313 } // namespace cc
311 314
312 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 315 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698