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

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: Rebase. 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | content/browser/compositor/gpu_output_surface_mac.mm » ('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/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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 } 1482 }
1483 1483
1484 void LayerTreeHostImpl::DidSwapBuffers() { 1484 void LayerTreeHostImpl::DidSwapBuffers() {
1485 client_->DidSwapBuffersOnImplThread(); 1485 client_->DidSwapBuffersOnImplThread();
1486 } 1486 }
1487 1487
1488 void LayerTreeHostImpl::DidSwapBuffersComplete() { 1488 void LayerTreeHostImpl::DidSwapBuffersComplete() {
1489 client_->DidSwapBuffersCompleteOnImplThread(); 1489 client_->DidSwapBuffersCompleteOnImplThread();
1490 } 1490 }
1491 1491
1492 void LayerTreeHostImpl::DidReceiveTextureInUseResponses(
1493 const gpu::TextureInUseResponses& responses) {
1494 NOTREACHED();
1495 }
1496
1492 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) { 1497 void LayerTreeHostImpl::ReclaimResources(const CompositorFrameAck* ack) {
1493 // TODO(piman): We may need to do some validation on this ack before 1498 // TODO(piman): We may need to do some validation on this ack before
1494 // processing it. 1499 // processing it.
1495 if (renderer_) 1500 if (renderer_)
1496 renderer_->ReceiveSwapBuffersAck(*ack); 1501 renderer_->ReceiveSwapBuffersAck(*ack);
1497 1502
1498 // In OOM, we now might be able to release more resources that were held 1503 // In OOM, we now might be able to release more resources that were held
1499 // because they were exported. 1504 // because they were exported.
1500 if (resource_pool_) { 1505 if (resource_pool_) {
1501 if (resource_pool_->memory_usage_bytes()) { 1506 if (resource_pool_->memory_usage_bytes()) {
(...skipping 2525 matching lines...) Expand 10 before | Expand all | Expand 10 after
4027 const { 4032 const {
4028 return fixed_raster_scale_attempted_scale_change_history_.count() >= 4033 return fixed_raster_scale_attempted_scale_change_history_.count() >=
4029 kFixedRasterScaleAttemptedScaleChangeThreshold; 4034 kFixedRasterScaleAttemptedScaleChangeThreshold;
4030 } 4035 }
4031 4036
4032 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() { 4037 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() {
4033 fixed_raster_scale_attempted_scale_change_history_.set(0); 4038 fixed_raster_scale_attempted_scale_change_history_.set(0);
4034 } 4039 }
4035 4040
4036 } // namespace cc 4041 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.h ('k') | content/browser/compositor/gpu_output_surface_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698