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

Side by Side Diff: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc

Issue 2493223002: Change exo::SurfaceFactoryOwner to exo::ExoCompositorFrameSink (Closed)
Patch Set: Undid a change on an if condition in exo::Surface::CommitSurfaceHierarchy() Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h " 5 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h "
6 6
7 #include "cc/surfaces/surface.h" 7 #include "cc/surfaces/surface.h"
8 #include "cc/surfaces/surface_manager.h" 8 #include "cc/surfaces/surface_manager.h"
9 #include "content/browser/compositor/surface_utils.h" 9 #include "content/browser/compositor/surface_utils.h"
10 #include "mojo/public/cpp/bindings/strong_binding.h" 10 #include "mojo/public/cpp/bindings/strong_binding.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 base::Bind( 52 base::Bind(
53 &OffscreenCanvasCompositorFrameSink::DidReceiveCompositorFrameAck, 53 &OffscreenCanvasCompositorFrameSink::DidReceiveCompositorFrameAck,
54 base::Unretained(this))); 54 base::Unretained(this)));
55 } 55 }
56 56
57 void OffscreenCanvasCompositorFrameSink::SetNeedsBeginFrame( 57 void OffscreenCanvasCompositorFrameSink::SetNeedsBeginFrame(
58 bool needs_begin_frame) { 58 bool needs_begin_frame) {
59 NOTIMPLEMENTED(); 59 NOTIMPLEMENTED();
60 } 60 }
61 61
62 void OffscreenCanvasCompositorFrameSink::EvictFrame() {
63 NOTIMPLEMENTED();
64 }
65
62 void OffscreenCanvasCompositorFrameSink::ReturnResources( 66 void OffscreenCanvasCompositorFrameSink::ReturnResources(
63 const cc::ReturnedResourceArray& resources) { 67 const cc::ReturnedResourceArray& resources) {
64 if (resources.empty()) 68 if (resources.empty())
65 return; 69 return;
66 70
67 if (!ack_pending_count_ && client_) { 71 if (!ack_pending_count_ && client_) {
68 client_->ReclaimResources(resources); 72 client_->ReclaimResources(resources);
69 return; 73 return;
70 } 74 }
71 75
(...skipping 14 matching lines...) Expand all
86 client_->DidReceiveCompositorFrameAck(); 90 client_->DidReceiveCompositorFrameAck();
87 DCHECK_GT(ack_pending_count_, 0); 91 DCHECK_GT(ack_pending_count_, 0);
88 if (!surface_returned_resources_.empty()) { 92 if (!surface_returned_resources_.empty()) {
89 client_->ReclaimResources(surface_returned_resources_); 93 client_->ReclaimResources(surface_returned_resources_);
90 surface_returned_resources_.clear(); 94 surface_returned_resources_.clear();
91 } 95 }
92 ack_pending_count_--; 96 ack_pending_count_--;
93 } 97 }
94 98
95 } // namespace content 99 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698