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

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

Issue 99253004: cc: Allow copy requests to provide a texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mailbox: 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
« no previous file with comments | « cc/output/gl_renderer.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/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual void destroyImageCHROMIUM(blink::WGC3Duint image_id); 151 virtual void destroyImageCHROMIUM(blink::WGC3Duint image_id);
152 virtual void getImageParameterivCHROMIUM( 152 virtual void getImageParameterivCHROMIUM(
153 blink::WGC3Duint image_id, 153 blink::WGC3Duint image_id,
154 blink::WGC3Denum pname, 154 blink::WGC3Denum pname,
155 blink::WGC3Dint* params); 155 blink::WGC3Dint* params);
156 virtual void* mapImageCHROMIUM( 156 virtual void* mapImageCHROMIUM(
157 blink::WGC3Duint image_id, 157 blink::WGC3Duint image_id,
158 blink::WGC3Denum access); 158 blink::WGC3Denum access);
159 virtual void unmapImageCHROMIUM(blink::WGC3Duint image_id); 159 virtual void unmapImageCHROMIUM(blink::WGC3Duint image_id);
160 160
161 virtual unsigned insertSyncPoint() OVERRIDE;
162 virtual void waitSyncPoint(unsigned sync_point) OVERRIDE;
163
164 unsigned last_waited_sync_point() const { return last_waited_sync_point_; }
165
161 const ContextProvider::Capabilities& test_capabilities() const { 166 const ContextProvider::Capabilities& test_capabilities() const {
162 return test_capabilities_; 167 return test_capabilities_;
163 } 168 }
164 169
165 // When set, MakeCurrent() will fail after this many times. 170 // When set, MakeCurrent() will fail after this many times.
166 void set_times_make_current_succeeds(int times) { 171 void set_times_make_current_succeeds(int times) {
167 times_make_current_succeeds_ = times; 172 times_make_current_succeeds_ = times;
168 } 173 }
169 void set_times_bind_texture_succeeds(int times) { 174 void set_times_bind_texture_succeeds(int times) {
170 times_bind_texture_succeeds_ = times; 175 times_bind_texture_succeeds_ = times;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 base::hash_set<unsigned> shader_set_; 350 base::hash_set<unsigned> shader_set_;
346 std::vector<blink::WebGraphicsContext3D*> shared_contexts_; 351 std::vector<blink::WebGraphicsContext3D*> shared_contexts_;
347 int max_texture_size_; 352 int max_texture_size_;
348 bool reshape_called_; 353 bool reshape_called_;
349 int width_; 354 int width_;
350 int height_; 355 int height_;
351 float scale_factor_; 356 float scale_factor_;
352 TestContextSupport* test_support_; 357 TestContextSupport* test_support_;
353 gfx::Rect update_rect_; 358 gfx::Rect update_rect_;
354 UpdateType last_update_type_; 359 UpdateType last_update_type_;
360 unsigned next_insert_sync_point_;
361 unsigned last_waited_sync_point_;
355 362
356 unsigned bound_buffer_; 363 unsigned bound_buffer_;
357 TextureTargets texture_targets_; 364 TextureTargets texture_targets_;
358 365
359 size_t peak_transfer_buffer_memory_used_bytes_; 366 size_t peak_transfer_buffer_memory_used_bytes_;
360 367
361 scoped_refptr<Namespace> namespace_; 368 scoped_refptr<Namespace> namespace_;
362 static Namespace* shared_namespace_; 369 static Namespace* shared_namespace_;
363 370
364 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 371 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
365 }; 372 };
366 373
367 } // namespace cc 374 } // namespace cc
368 375
369 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 376 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.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