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

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

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Compile errors. Created 4 years, 6 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
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/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 } 1483 }
1484 1484
1485 void LayerTreeHostImpl::DidSwapBuffers() { 1485 void LayerTreeHostImpl::DidSwapBuffers() {
1486 client_->DidSwapBuffersOnImplThread(); 1486 client_->DidSwapBuffersOnImplThread();
1487 } 1487 }
1488 1488
1489 void LayerTreeHostImpl::DidSwapBuffersComplete() { 1489 void LayerTreeHostImpl::DidSwapBuffersComplete() {
1490 client_->DidSwapBuffersCompleteOnImplThread(); 1490 client_->DidSwapBuffersCompleteOnImplThread();
1491 } 1491 }
1492 1492
1493 void LayerTreeHostImpl::DidReceiveTextureInUseResponses(
1494 const gpu::TextureInUseResponses& responses) {
1495 NOTREACHED();
1496 }
1497
1493 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) { 1498 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) {
1494 // TODO(piman): We may need to do some validation on this ack before 1499 // TODO(piman): We may need to do some validation on this ack before
1495 // processing it. 1500 // processing it.
1496 if (renderer_) 1501 if (renderer_)
1497 renderer_->ReceiveSwapBuffersAck(*ack); 1502 renderer_->ReceiveSwapBuffersAck(*ack);
1498 1503
1499 // In OOM, we now might be able to release more resources that were held 1504 // In OOM, we now might be able to release more resources that were held
1500 // because they were exported. 1505 // because they were exported.
1501 if (resource_pool_) { 1506 if (resource_pool_) {
1502 if (resource_pool_->memory_usage_bytes()) { 1507 if (resource_pool_->memory_usage_bytes()) {
(...skipping 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
4029 const { 4034 const {
4030 return fixed_raster_scale_attempted_scale_change_history_.count() >= 4035 return fixed_raster_scale_attempted_scale_change_history_.count() >=
4031 kFixedRasterScaleAttemptedScaleChangeThreshold; 4036 kFixedRasterScaleAttemptedScaleChangeThreshold;
4032 } 4037 }
4033 4038
4034 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() { 4039 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() {
4035 fixed_raster_scale_attempted_scale_change_history_.set(0); 4040 fixed_raster_scale_attempted_scale_change_history_.set(0);
4036 } 4041 }
4037 4042
4038 } // namespace cc 4043 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698