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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase 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 "platform/graphics/CanvasSurfaceLayerBridge.h" 5 #include "platform/graphics/CanvasSurfaceLayerBridge.h"
6 6
7 #include "cc/layers/layer.h" 7 #include "cc/layers/layer.h"
8 #include "cc/layers/solid_color_layer.h" 8 #include "cc/layers/solid_color_layer.h"
9 #include "cc/layers/surface_layer.h" 9 #include "cc/layers/surface_layer.h"
10 #include "cc/surfaces/sequence_surface_reference_factory.h" 10 #include "cc/surfaces/sequence_surface_reference_factory.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 : m_weakFactory(this), 59 : m_weakFactory(this),
60 m_observer(observer), 60 m_observer(observer),
61 m_binding(this), 61 m_binding(this),
62 m_frameSinkId(Platform::current()->generateFrameSinkId()) { 62 m_frameSinkId(Platform::current()->generateFrameSinkId()) {
63 m_refFactory = 63 m_refFactory =
64 new OffscreenCanvasSurfaceReferenceFactory(m_weakFactory.GetWeakPtr()); 64 new OffscreenCanvasSurfaceReferenceFactory(m_weakFactory.GetWeakPtr());
65 65
66 DCHECK(!m_service.is_bound()); 66 DCHECK(!m_service.is_bound());
67 mojom::blink::OffscreenCanvasSurfaceFactoryPtr serviceFactory; 67 mojom::blink::OffscreenCanvasSurfaceFactoryPtr serviceFactory;
68 Platform::current()->interfaceProvider()->getInterface( 68 Platform::current()->interfaceProvider()->getInterface(
69 mojo::GetProxy(&serviceFactory)); 69 mojo::MakeRequest(&serviceFactory));
70 serviceFactory->CreateOffscreenCanvasSurface( 70 serviceFactory->CreateOffscreenCanvasSurface(
71 m_frameSinkId, m_binding.CreateInterfacePtrAndBind(), 71 m_frameSinkId, m_binding.CreateInterfacePtrAndBind(),
72 mojo::GetProxy(&m_service)); 72 mojo::MakeRequest(&m_service));
73 } 73 }
74 74
75 CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge() { 75 CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge() {
76 m_observer = nullptr; 76 m_observer = nullptr;
77 } 77 }
78 78
79 void CanvasSurfaceLayerBridge::createSolidColorLayer() { 79 void CanvasSurfaceLayerBridge::createSolidColorLayer() {
80 m_CCLayer = cc::SolidColorLayer::Create(); 80 m_CCLayer = cc::SolidColorLayer::Create();
81 m_CCLayer->SetBackgroundColor(SK_ColorTRANSPARENT); 81 m_CCLayer->SetBackgroundColor(SK_ColorTRANSPARENT);
82 m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer( 82 m_webLayer = Platform::current()->compositorSupport()->createLayerFromCCLayer(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 m_service->Satisfy(sequence); 116 m_service->Satisfy(sequence);
117 } 117 }
118 118
119 void CanvasSurfaceLayerBridge::requireCallback( 119 void CanvasSurfaceLayerBridge::requireCallback(
120 const cc::SurfaceId& surfaceId, 120 const cc::SurfaceId& surfaceId,
121 const cc::SurfaceSequence& sequence) { 121 const cc::SurfaceSequence& sequence) {
122 m_service->Require(surfaceId, sequence); 122 m_service->Require(surfaceId, sequence);
123 } 123 }
124 124
125 } // namespace blink 125 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698