0

[ios blink] Fix ios build failure

The compositor_unittests were failing to link. Move the implementation
of the interface class beside the definition.

Change-Id: I0968cf3d17b4eba7e584bc64542506f87f3cd4d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6005995
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1380655}
This commit is contained in:
Dave Tapuska
2024-11-08 22:30:35 +00:00
committed by Chromium LUCI CQ
parent f01a4d42c7
commit c21dbaf65d
4 changed files with 17 additions and 7 deletions

@ -11,12 +11,6 @@
static void* kObservingContext = &kObservingContext;
@implementation CALayerFrameSinkProvider
- (ui::CALayerFrameSink*)frameSink {
return nil;
}
@end
@interface BETextPosition : UITextPosition {
CGRect rect_;
}

@ -34,7 +34,10 @@ component("accelerated_widget_mac") {
]
if (is_ios) {
sources += [ "ca_layer_frame_sink_provider.h" ]
sources += [
"ca_layer_frame_sink_provider.h",
"ca_layer_frame_sink_provider.mm",
]
}
if (is_mac) {

@ -5,6 +5,8 @@
#ifndef UI_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_PROVIDER_H_
#define UI_ACCELERATED_WIDGET_MAC_CA_LAYER_FRAME_SINK_PROVIDER_H_
#include <UIKit/UIKit.h>
#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
#include "ui/gfx/ca_layer_params.h"
#include "ui/gfx/native_widget_types.h"

@ -0,0 +1,11 @@
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ui/accelerated_widget_mac/ca_layer_frame_sink_provider.h"
@implementation CALayerFrameSinkProvider
- (ui::CALayerFrameSink*)frameSink {
return nil;
}
@end