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

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

Issue 16831004: Perform glReadPixels with PBOs in the gpu, if PBOs are available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cc_unittests 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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