| Index: third_party/grpc/include/grpc/impl/codegen/sync_win32.h
|
| diff --git a/third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp b/third_party/grpc/include/grpc/impl/codegen/sync_win32.h
|
| similarity index 77%
|
| copy from third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp
|
| copy to third_party/grpc/include/grpc/impl/codegen/sync_win32.h
|
| index 440f5d472d2474c70699383582f7ce52aec52a3d..1a6596c571ab47b0923fc0cd9ec5603f73a24542 100644
|
| --- a/third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp
|
| +++ b/third_party/grpc/include/grpc/impl/codegen/sync_win32.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2010 Google Inc. All rights reserved.
|
| + *
|
| + * Copyright 2015-2016, Google Inc.
|
| + * All rights reserved.
|
| *
|
| * Redistribution and use in source and binary forms, with or without
|
| * modification, are permitted provided that the following conditions are
|
| @@ -26,21 +28,22 @@
|
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + *
|
| */
|
|
|
| -#include "web/CompositionUnderlineVectorBuilder.h"
|
| +#ifndef GRPC_IMPL_CODEGEN_SYNC_WIN32_H
|
| +#define GRPC_IMPL_CODEGEN_SYNC_WIN32_H
|
| +
|
| +#include <grpc/impl/codegen/sync_generic.h>
|
|
|
| -#include "web/CompositionUnderlineBuilder.h"
|
| +typedef struct {
|
| + CRITICAL_SECTION cs; /* Not an SRWLock until Vista is unsupported */
|
| + int locked;
|
| +} gpr_mu;
|
|
|
| -namespace blink {
|
| +typedef CONDITION_VARIABLE gpr_cv;
|
|
|
| -CompositionUnderlineVectorBuilder::CompositionUnderlineVectorBuilder(
|
| - const WebVector<WebCompositionUnderline>& underlines)
|
| -{
|
| - size_t size = underlines.size();
|
| - reserveCapacity(size);
|
| - for (size_t i = 0; i < size; ++i)
|
| - append(CompositionUnderlineBuilder(underlines[i]));
|
| -}
|
| +typedef INIT_ONCE gpr_once;
|
| +#define GPR_ONCE_INIT INIT_ONCE_STATIC_INIT
|
|
|
| -} // namespace blink
|
| +#endif /* GRPC_IMPL_CODEGEN_SYNC_WIN32_H */
|
|
|