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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 shared_contexts_[i]->loseContextCHROMIUM(current, other); | 408 shared_contexts_[i]->loseContextCHROMIUM(current, other); |
409 shared_contexts_.clear(); | 409 shared_contexts_.clear(); |
410 } | 410 } |
411 | 411 |
412 void TestWebGraphicsContext3D::signalSyncPoint( | 412 void TestWebGraphicsContext3D::signalSyncPoint( |
413 unsigned sync_point, | 413 unsigned sync_point, |
414 WebGraphicsSyncPointCallback* callback) { | 414 WebGraphicsSyncPointCallback* callback) { |
415 sync_point_callbacks_.push_back(callback); | 415 sync_point_callbacks_.push_back(callback); |
416 } | 416 } |
417 | 417 |
| 418 void TestWebGraphicsContext3D::signalQuery( |
| 419 WebKit::WebGLId query, |
| 420 WebGraphicsSyncPointCallback* callback) { |
| 421 sync_point_callbacks_.push_back(callback); |
| 422 } |
| 423 |
418 void TestWebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM( | 424 void TestWebGraphicsContext3D::setSwapBuffersCompleteCallbackCHROMIUM( |
419 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) { | 425 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) { |
420 if (support_swapbuffers_complete_callback_) | 426 if (support_swapbuffers_complete_callback_) |
421 swap_buffers_callback_ = callback; | 427 swap_buffers_callback_ = callback; |
422 } | 428 } |
423 | 429 |
424 void TestWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM( | 430 void TestWebGraphicsContext3D::setMemoryAllocationChangedCallbackCHROMIUM( |
425 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { | 431 WebGraphicsMemoryAllocationChangedCallbackCHROMIUM* callback) { |
426 memory_allocation_changed_callback_ = callback; | 432 memory_allocation_changed_callback_ = callback; |
427 } | 433 } |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 633 |
628 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {} | 634 TestWebGraphicsContext3D::Buffer::Buffer() : target(0) {} |
629 | 635 |
630 TestWebGraphicsContext3D::Buffer::~Buffer() {} | 636 TestWebGraphicsContext3D::Buffer::~Buffer() {} |
631 | 637 |
632 TestWebGraphicsContext3D::Image::Image() {} | 638 TestWebGraphicsContext3D::Image::Image() {} |
633 | 639 |
634 TestWebGraphicsContext3D::Image::~Image() {} | 640 TestWebGraphicsContext3D::Image::~Image() {} |
635 | 641 |
636 } // namespace cc | 642 } // namespace cc |
OLD | NEW |