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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 110583008: Enable Canvas2D hardware acceleration for Android WebView Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | 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/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 offscreen_context_provider->VerifyContexts(); 1431 offscreen_context_provider->VerifyContexts();
1432 offscreen_context_provider = NULL; 1432 offscreen_context_provider = NULL;
1433 } 1433 }
1434 1434
1435 layer_tree_host_impl_->SetOffscreenContextProvider( 1435 layer_tree_host_impl_->SetOffscreenContextProvider(
1436 offscreen_context_provider); 1436 offscreen_context_provider);
1437 1437
1438 completion->Signal(); 1438 completion->Signal();
1439 } 1439 }
1440 1440
1441 void ThreadProxy::OnGetRendererCapabilities() {
1442 renderer_capabilities_main_thread_copy_ =
1443 layer_tree_host_impl_->GetRendererCapabilities();
boliu 2014/01/08 17:55:05 Much less hacky, still has some problems though.
1444 }
1445
1441 void ThreadProxy::FinishGLOnImplThread(CompletionEvent* completion) { 1446 void ThreadProxy::FinishGLOnImplThread(CompletionEvent* completion) {
1442 TRACE_EVENT0("cc", "ThreadProxy::FinishGLOnImplThread"); 1447 TRACE_EVENT0("cc", "ThreadProxy::FinishGLOnImplThread");
1443 DCHECK(IsImplThread()); 1448 DCHECK(IsImplThread());
1444 if (layer_tree_host_impl_->resource_provider()) 1449 if (layer_tree_host_impl_->resource_provider())
1445 layer_tree_host_impl_->resource_provider()->Finish(); 1450 layer_tree_host_impl_->resource_provider()->Finish();
1446 completion->Signal(); 1451 completion->Signal();
1447 } 1452 }
1448 1453
1449 void ThreadProxy::LayerTreeHostClosedOnImplThread(CompletionEvent* completion) { 1454 void ThreadProxy::LayerTreeHostClosedOnImplThread(CompletionEvent* completion) {
1450 TRACE_EVENT0("cc", "ThreadProxy::LayerTreeHostClosedOnImplThread"); 1455 TRACE_EVENT0("cc", "ThreadProxy::LayerTreeHostClosedOnImplThread");
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 commit_to_activate_duration_history_.InsertSample( 1647 commit_to_activate_duration_history_.InsertSample(
1643 base::TimeTicks::HighResNow() - commit_complete_time_); 1648 base::TimeTicks::HighResNow() - commit_complete_time_);
1644 } 1649 }
1645 1650
1646 void ThreadProxy::DidManageTiles() { 1651 void ThreadProxy::DidManageTiles() {
1647 DCHECK(IsImplThread()); 1652 DCHECK(IsImplThread());
1648 scheduler_on_impl_thread_->DidManageTiles(); 1653 scheduler_on_impl_thread_->DidManageTiles();
1649 } 1654 }
1650 1655
1651 } // namespace cc 1656 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698