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

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

Issue 1091323002: Send a message through the ozone channel to recreate buffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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') | content/browser/compositor/buffer_queue.h » ('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/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 1160
1161 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 1161 void ThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
1162 NOTREACHED() << "Only used by SingleThreadProxy"; 1162 NOTREACHED() << "Only used by SingleThreadProxy";
1163 } 1163 }
1164 1164
1165 void ThreadProxy::SetAuthoritativeVSyncInterval( 1165 void ThreadProxy::SetAuthoritativeVSyncInterval(
1166 const base::TimeDelta& interval) { 1166 const base::TimeDelta& interval) {
1167 NOTREACHED() << "Only used by SingleThreadProxy"; 1167 NOTREACHED() << "Only used by SingleThreadProxy";
1168 } 1168 }
1169 1169
1170 void ThreadProxy::RecreateOutputSurfaceBuffers() {
1171 impl().layer_tree_host_impl->output_surface()->RecreateBuffers();
1172 }
1173
1170 void ThreadProxy::ReadyToFinalizeTextureUpdates() { 1174 void ThreadProxy::ReadyToFinalizeTextureUpdates() {
1171 DCHECK(IsImplThread()); 1175 DCHECK(IsImplThread());
1172 impl().scheduler->NotifyReadyToCommit(); 1176 impl().scheduler->NotifyReadyToCommit();
1173 } 1177 }
1174 1178
1175 void ThreadProxy::DidCommitAndDrawFrame() { 1179 void ThreadProxy::DidCommitAndDrawFrame() {
1176 DCHECK(IsMainThread()); 1180 DCHECK(IsMainThread());
1177 layer_tree_host()->DidCommitAndDrawFrame(); 1181 layer_tree_host()->DidCommitAndDrawFrame();
1178 } 1182 }
1179 1183
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation, 1403 FROM_HERE, base::Bind(&ThreadProxy::DidCompletePageScaleAnimation,
1400 main_thread_weak_ptr_)); 1404 main_thread_weak_ptr_));
1401 } 1405 }
1402 1406
1403 void ThreadProxy::OnDrawForOutputSurface() { 1407 void ThreadProxy::OnDrawForOutputSurface() {
1404 DCHECK(IsImplThread()); 1408 DCHECK(IsImplThread());
1405 impl().scheduler->OnDrawForOutputSurface(); 1409 impl().scheduler->OnDrawForOutputSurface();
1406 } 1410 }
1407 1411
1408 } // namespace cc 1412 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.h ('k') | content/browser/compositor/buffer_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698