OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #include "cc/test/test_web_graphics_context_3d.h" | 5 #include "cc/test/test_web_graphics_context_3d.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 shared_contexts_[i]->loseContextCHROMIUM(current, other); | 357 shared_contexts_[i]->loseContextCHROMIUM(current, other); |
358 shared_contexts_.clear(); | 358 shared_contexts_.clear(); |
359 } | 359 } |
360 | 360 |
361 void TestWebGraphicsContext3D::signalSyncPoint( | 361 void TestWebGraphicsContext3D::signalSyncPoint( |
362 unsigned sync_point, | 362 unsigned sync_point, |
363 WebGraphicsSyncPointCallback* callback) { | 363 WebGraphicsSyncPointCallback* callback) { |
364 sync_point_callbacks_.push_back(callback); | 364 sync_point_callbacks_.push_back(callback); |
365 } | 365 } |
366 | 366 |
| 367 void TestWebGraphicsContext3D::signalQuery( |
| 368 WebKit::WebGLId query, |
| 369 WebGraphicsSyncPointCallback* callback) { |
| 370 sync_point_callbacks_.push_back(callback); |
| 371 } |
| 372 |
367 void TestWebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM( | 373 void TestWebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM( |
368 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) { | 374 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) { |
369 if (support_swapbuffers_complete_callback_) | 375 if (support_swapbuffers_complete_callback_) |
370 swap_buffers_callback_ = callback; | 376 swap_buffers_callback_ = callback; |
371 } | 377 } |
372 | 378 |
373 void TestWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM( | 379 void TestWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM( |
374 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { | 380 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { |
375 memory_allocation_changed_callback_ = callback; | 381 memory_allocation_changed_callback_ = callback; |
376 } | 382 } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 553 |
548 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {} | 554 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {} |
549 | 555 |
550 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 556 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
551 | 557 |
552 TestWebGraphicsContext3D::Image::Image() {} | 558 TestWebGraphicsContext3D::Image::Image() {} |
553 | 559 |
554 TestWebGraphicsContext3D::Image::~Image() {} | 560 TestWebGraphicsContext3D::Image::~Image() {} |
555 | 561 |
556 } // namespace cc | 562 } // namespace cc |
OLD | NEW |