Commit 685f0325 authored by Mike Reed's avatar Mike Reed Committed by Commit Bot

remove unneeded/deprecated include

Bug: 
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: Ia8d81135c16606cbf32fe9275a954127e35c7550
Reviewed-on: https://chromium-review.googlesource.com/834714Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
Reviewed-by: default avatarFlorin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#525238}
parent 9243273c
......@@ -16,7 +16,7 @@
#include "third_party/skia/include/core/SkAnnotation.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "third_party/skia/include/core/SkWriteBuffer.h"
#include "third_party/skia/include/core/SkSerialProcs.h"
namespace cc {
#define TYPES(M) \
......@@ -1537,21 +1537,10 @@ bool DrawTextBlobOp::AreEqual(const PaintOp* base_left,
DCHECK(*left->blob);
DCHECK(*right->blob);
SkBinaryWriteBuffer left_flattened;
left->blob->ToSkTextBlob()->flatten(left_flattened);
std::vector<char> left_mem(left_flattened.bytesWritten());
left_flattened.writeToMemory(left_mem.data());
SkBinaryWriteBuffer right_flattened;
right->blob->ToSkTextBlob()->flatten(right_flattened);
std::vector<char> right_mem(right_flattened.bytesWritten());
right_flattened.writeToMemory(right_mem.data());
if (left_mem.size() != right_mem.size())
return false;
if (left_mem != right_mem)
return false;
return true;
SkSerialProcs default_procs;
return left->blob->ToSkTextBlob()
->serialize(default_procs)
->equals(right->blob->ToSkTextBlob()->serialize(default_procs).get());
}
bool NoopOp::AreEqual(const PaintOp* base_left, const PaintOp* base_right) {
......
......@@ -19,7 +19,6 @@
#include "cc/test/transfer_cache_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkFlattenableSerialization.h"
#include "third_party/skia/include/core/SkWriteBuffer.h"
#include "third_party/skia/include/effects/SkBlurMaskFilter.h"
#include "third_party/skia/include/effects/SkColorMatrixFilter.h"
#include "third_party/skia/include/effects/SkDashPathEffect.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment