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

Unified Diff: cc/test/test_context_support.cc

Issue 619453002: gpu: Remove Echo and SwapCompletion GL interfacess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tits
Patch Set: remove comment Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_context_support.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_support.cc
diff --git a/cc/test/test_context_support.cc b/cc/test/test_context_support.cc
index a2bedc0835219e3f6193d8bda6087e5b83d11a3a..88127d582d49fe3e6bc9343a7cee8ce6db9dfd62 100644
--- a/cc/test/test_context_support.cc
+++ b/cc/test/test_context_support.cc
@@ -60,9 +60,6 @@ void TestContextSupport::SetScheduleOverlayPlaneCallback(
void TestContextSupport::Swap() {
last_swap_type_ = SWAP;
- base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(&TestContextSupport::OnSwapBuffersComplete,
- weak_ptr_factory_.GetWeakPtr()));
}
uint32 TestContextSupport::InsertFutureSyncPointCHROMIUM() {
@@ -77,9 +74,6 @@ void TestContextSupport::RetireSyncPointCHROMIUM(uint32 sync_point) {
void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
last_swap_type_ = PARTIAL_SWAP;
last_partial_swap_rect_ = sub_buffer;
- base::MessageLoop::current()->PostTask(
- FROM_HERE, base::Bind(&TestContextSupport::OnSwapBuffersComplete,
- weak_ptr_factory_.GetWeakPtr()));
}
void TestContextSupport::ScheduleOverlayPlane(
@@ -97,14 +91,4 @@ void TestContextSupport::ScheduleOverlayPlane(
}
}
-void TestContextSupport::SetSwapBuffersCompleteCallback(
- const base::Closure& callback) {
- swap_buffers_complete_callback_ = callback;
-}
-
-void TestContextSupport::OnSwapBuffersComplete() {
- if (!swap_buffers_complete_callback_.is_null())
- swap_buffers_complete_callback_.Run();
-}
-
} // namespace cc
« no previous file with comments | « cc/test/test_context_support.h ('k') | content/common/gpu/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698