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

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

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed webkit_unit_tests Created 4 years, 5 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 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_surface_impl.h" 5 #include "content/browser/renderer_host/offscreen_canvas_surface_impl.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_manager.h" 9 #include "cc/surfaces/surface_manager.h"
10 #include "content/browser/compositor/surface_utils.h" 10 #include "content/browser/compositor/surface_utils.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DLOG(ERROR) << "Attempting to require callback on nonexistent surface"; 62 DLOG(ERROR) << "Attempting to require callback on nonexistent surface";
63 return; 63 return;
64 } 64 }
65 surface->AddDestructionDependency(sequence); 65 surface->AddDestructionDependency(sequence);
66 } 66 }
67 67
68 void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) { 68 void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) {
69 std::vector<uint32_t> sequences; 69 std::vector<uint32_t> sequences;
70 sequences.push_back(sequence.sequence); 70 sequences.push_back(sequence.sequence);
71 cc::SurfaceManager* manager = GetSurfaceManager(); 71 cc::SurfaceManager* manager = GetSurfaceManager();
72 manager->DidSatisfySequences(sequence.id_namespace, &sequences); 72 manager->DidSatisfySequences(sequence.client_id, &sequences);
73 } 73 }
74 74
75 // TODO(619136): Implement cc::SurfaceFactoryClient functions for resources 75 // TODO(619136): Implement cc::SurfaceFactoryClient functions for resources
76 // return. 76 // return.
77 void OffscreenCanvasSurfaceImpl::ReturnResources( 77 void OffscreenCanvasSurfaceImpl::ReturnResources(
78 const cc::ReturnedResourceArray& resources) {} 78 const cc::ReturnedResourceArray& resources) {}
79 79
80 void OffscreenCanvasSurfaceImpl::WillDrawSurface(const cc::SurfaceId& id, 80 void OffscreenCanvasSurfaceImpl::WillDrawSurface(const cc::SurfaceId& id,
81 const gfx::Rect& damage_rect) { 81 const gfx::Rect& damage_rect) {
82 } 82 }
83 83
84 void OffscreenCanvasSurfaceImpl::SetBeginFrameSource( 84 void OffscreenCanvasSurfaceImpl::SetBeginFrameSource(
85 cc::BeginFrameSource* begin_frame_source) {} 85 cc::BeginFrameSource* begin_frame_source) {}
86 86
87 } // namespace content 87 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698