1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20

media / gpu / android / mock_codec_image.cc [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "media/gpu/android/mock_codec_image.h"

#include "gpu/command_buffer/service/ref_counted_lock_for_test.h"
#include "gpu/config/gpu_finch_features.h"

namespace media {

MockCodecImage::MockCodecImage(const gfx::Size& coded_size)
    : CodecImage(coded_size,
                 features::NeedThreadSafeAndroidMedia()
                     ? base::MakeRefCounted<gpu::RefCountedLockForTest>()
                     : nullptr) {}

MockCodecImage::~MockCodecImage() = default;

}  // namespace media