未验证 提交 89f3471f 编写于 作者: D Dan Field 提交者: GitHub

the the fix (#15973)

上级 b22821a5
......@@ -187,7 +187,7 @@ struct Settings {
// Window.getPersistentIsolateData callback. This is meant for information
// that the isolate cannot request asynchronously (platform messages can be
// used for that purpose). This data is held for the lifetime of the shell and
// is available on isolate restarts in the the shell instance. Due to this,
// is available on isolate restarts in the shell instance. Due to this,
// the buffer must be as small as possible.
std::shared_ptr<const fml::Mapping> persistent_isolate_data;
......
......@@ -16,7 +16,7 @@
namespace flutter {
// A queue that holds Skia objects that must be destructed on the the given task
// A queue that holds Skia objects that must be destructed on the given task
// runner.
class SkiaUnrefQueue : public fml::RefCountedThreadSafe<SkiaUnrefQueue> {
public:
......
......@@ -36,7 +36,7 @@ class GpuThreadMerger : public fml::RefCountedThreadSafe<GpuThreadMerger> {
GpuThreadMerger(fml::TaskQueueId platform_queue_id,
fml::TaskQueueId gpu_queue_id);
// Returns true if the the current thread owns rasterizing.
// Returns true if the current thread owns rasterizing.
// When the threads are merged, platform thread owns rasterizing.
// When un-merged, gpu thread owns rasterizing.
bool IsOnRasterizingThread();
......
......@@ -19,7 +19,7 @@ enum class OwnershipPolicy {
// ownership claim.
Assume,
// The scoped object will retain the the object and any initial ownership is
// The scoped object will retain the object and any initial ownership is
// not changed.
Retain,
};
......
......@@ -646,7 +646,7 @@ enum BlendMode {
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_colorDodge.png)
colorDodge,
/// Divide the inverse of the destination by the the source, and inverse the result.
/// Divide the inverse of the destination by the source, and inverse the result.
///
/// Inverting the components means that a fully saturated channel (opaque
/// white) is treated as the value 0.0, and values normally treated as 0.0
......@@ -2118,7 +2118,7 @@ class Path extends NativeFieldWrapperClass2 {
void _addPathWithMatrix(Path path, double dx, double dy, Float64List matrix) native 'Path_addPathWithMatrix';
/// Adds the given path to this path by extending the current segment of this
/// path with the the first segment of the given path.
/// path with the first segment of the given path.
///
/// If `matrix4` is specified, the path will be transformed by this matrix
/// after the matrix is translated by the given `offset`. The matrix is a 4x4
......
......@@ -471,7 +471,7 @@ class SemanticsFlag {
/// Whether the semantics node represents an image.
///
/// Both TalkBack and VoiceOver will inform the user the the semantics node
/// Both TalkBack and VoiceOver will inform the user the semantics node
/// represents an image.
static const SemanticsFlag isImage = SemanticsFlag._(_kIsImageIndex);
......
......@@ -178,7 +178,7 @@ class BrowserInstallation {
/// Browser version.
final String version;
/// Path the the browser executable.
/// Path the browser executable.
final String executable;
}
......
......@@ -125,7 +125,7 @@ class Scrollable extends RoleManager {
/// have zero offset relative to Flutter's notion of scroll position is
/// referred to as "neutral scroll position".
///
/// We always set the the scroll position to a non-zero value in order to
/// We always set the scroll position to a non-zero value in order to
/// be able to scroll in the negative direction. When scrollTop/scrollLeft is
/// zero the browser will refuse to scroll back even when there is more
/// content available.
......
......@@ -775,7 +775,7 @@ class SurfacePath implements ui.Path {
}
/// Adds the given path to this path by extending the current segment of this
/// path with the the first segment of the given path.
/// path with the first segment of the given path.
///
/// If `matrix4` is specified, the path will be transformed by this matrix
/// after the matrix is translated by the given `offset`. The matrix is a 4x4
......
......@@ -741,7 +741,7 @@ abstract class PersistedSurface implements ui.EngineLayer {
// `false` for children. Or, which might be cleaner, we could
// split this method into two methods. One method will detach
// the DOM, and the second method will disassociate the
// surface from the the DOM and release it irrespective of
// surface from the DOM and release it irrespective of
// whether the DOM itself gets detached or not.
rootElement.remove();
rootElement = null;
......
......@@ -660,7 +660,7 @@ enum BlendMode {
/// ![](https://flutter.github.io/assets-for-api-docs/assets/dart-ui/blend_mode_colorDodge.png)
colorDodge,
/// Divide the inverse of the destination by the the source, and inverse the result.
/// Divide the inverse of the destination by the source, and inverse the result.
///
/// Inverting the components means that a fully saturated channel (opaque
/// white) is treated as the value 0.0, and values normally treated as 0.0
......
......@@ -211,7 +211,7 @@ abstract class Path {
void addPath(Path path, Offset offset, {Float64List matrix4});
/// Adds the given path to this path by extending the current segment of this
/// path with the the first segment of the given path.
/// path with the first segment of the given path.
///
/// If `matrix4` is specified, the path will be transformed by this matrix
/// after the matrix is translated by the given `offset`. The matrix is a 4x4
......
......@@ -463,7 +463,7 @@ class SemanticsFlag {
/// Whether the semantics node represents an image.
///
/// Both TalkBack and VoiceOver will inform the user the the semantics node
/// Both TalkBack and VoiceOver will inform the user the semantics node
/// represents an image.
static const SemanticsFlag isImage = SemanticsFlag._(_kIsImageIndex);
......
......@@ -161,7 +161,7 @@ class Engine final : public RuntimeDelegate, PointerDataDispatcher::Delegate {
//--------------------------------------------------------------------------
/// @brief When the Flutter application has a message to send to the
/// underlying platform, the message needs to be forwarded to
/// the platform on the the appropriate thread (via the platform
/// the platform on the appropriate thread (via the platform
/// task runner). The engine delegates this task to the shell
/// via this method.
///
......@@ -231,7 +231,7 @@ class Engine final : public RuntimeDelegate, PointerDataDispatcher::Delegate {
//----------------------------------------------------------------------------
/// @brief Creates an instance of the engine. This is done by the Shell
/// on the the UI task runner.
/// on the UI task runner.
///
/// @param delegate The object used by the engine to perform
/// tasks that require access to components
......@@ -370,7 +370,7 @@ class Engine final : public RuntimeDelegate, PointerDataDispatcher::Delegate {
/// Flutter application. This happens implicitly in the call to
/// `Engine::Run` and `Engine::Restart` as the asset manager is
/// referenced from the run configuration provided to those calls.
/// In addition to the the `Engine::Run` and `Engine::Restart`
/// In addition to the `Engine::Run` and `Engine::Restart`
/// calls, the tooling may need to update the assets available to
/// the application as the user adds them to their project. For
/// example, these assets may be referenced by code that is newly
......
......@@ -200,7 +200,7 @@ class Rasterizer final : public SnapshotDelegate {
/// This is used as an optimization in cases where there are
/// external textures (video or camera streams for example) in
/// referenced in the layer tree. These textures may be updated at
/// a cadence different from that of the the Flutter application.
/// a cadence different from that of the Flutter application.
/// Flutter can re-render the layer tree with just the updated
/// textures instead of waiting for the framework to do the work
/// to generate the layer tree describing the same contents.
......
......@@ -59,7 +59,7 @@ static flutter::Settings DefaultSettingsForProcess(NSBundle* bundle = nil) {
// The command line arguments may not always be complete. If they aren't, attempt to fill in
// defaults.
// Flutter ships the ICU data file in the the bundle of the engine. Look for it there.
// Flutter ships the ICU data file in the bundle of the engine. Look for it there.
if (settings.icu_data_path.size() == 0) {
NSString* icuDataPath = [engineBundle pathForResource:@"icudtl" ofType:@"dat"];
if (icuDataPath.length > 0) {
......
......@@ -1665,7 +1665,7 @@ FlutterEngineResult FlutterEnginePostDartObject(
SAFE_ACCESS(object->buffer_value, buffer_collect_callback, nullptr);
auto user_data = SAFE_ACCESS(object->buffer_value, user_data, nullptr);
// The the user has provided a callback, let them manage the lifecycle of
// The user has provided a callback, let them manage the lifecycle of
// the underlying data. If not, copy it out from the provided buffer.
if (callback == nullptr) {
......
......@@ -1125,7 +1125,7 @@ typedef struct {
//------------------------------------------------------------------------------
/// @brief Initialize and run a Flutter engine instance and return a handle
/// to it. This is a convenience method for the the pair of calls to
/// to it. This is a convenience method for the pair of calls to
/// `FlutterEngineInitialize` and `FlutterEngineRunInitialized`.
///
/// @note This method of running a Flutter engine works well except in
......
......@@ -191,7 +191,7 @@ bool EmbedderExternalViewEmbedder::SubmitFrame(GrContext* context) {
if (!RenderPictureToRenderTarget(
root_picture_recorder_->finishRecordingAsPicture(),
root_render_target_.get())) {
FML_LOG(ERROR) << "Could not render into the the root render target.";
FML_LOG(ERROR) << "Could not render into the root render target.";
return false;
}
// The root picture recorder will be reset when a new frame begins.
......
......@@ -31,7 +31,7 @@ leak:wrap_dispatch_source_set_event_handler
leak:flutter::PlatformViewEmbedder::HandlePlatformMessage
# Service ID platform message is leaked in case the isolate dies before the
# message is received by the the same.
# message is received by the same.
# https://github.com/flutter/flutter/issues/42178
leak:flutter::Engine::Run(flutter::RunConfiguration)
......
......@@ -167,7 +167,7 @@ class Hyphenator {
// Try looking up word in alphabet table, return DONT_BREAK if any code units
// fail to map. Otherwise, returns BREAK_AND_INSERT_HYPHEN,
// BREAK_AND_INSERT_ARMENIAN_HYPHEN, or BREAK_AND_DONT_INSERT_HYPHEN based on
// the the script of the characters seen. Note that this method writes len+2
// the script of the characters seen. Note that this method writes len+2
// entries into alpha_codes (including start and stop)
HyphenationType alphabetLookup(uint16_t* alpha_codes,
const uint16_t* word,
......
......@@ -318,7 +318,7 @@ bool VulkanDevice::ChoosePresentMode(const VulkanSurface& surface,
// VK_PRESENT_MODE_FIFO_KHR is preferable on mobile platforms. The problems
// mentioned in the ticket w.r.t the application being faster that the refresh
// rate of the screen should not be faced by any Flutter platforms as they are
// powered by Vsync pulses instead of depending the the submit to block.
// powered by Vsync pulses instead of depending the submit to block.
// However, for platforms that don't have VSync providers setup, it is better
// to fall back to FIFO. For platforms that do have VSync providers, there
// should be little difference. In case there is a need for a mode other than
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册