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

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

Issue 19579008: Revert "Revert 210138 "Perform glReadPixels with PBOs in the gpu, if PBO..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: previous upload reverts the revert, here are the changes Created 7 years, 5 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 | « cc/test/test_web_graphics_context_3d.h ('k') | content/common/gpu/client/gl_helper.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 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
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
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
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698