summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_display_list_recording_source.cc
blob: 9f792c74ed4236bd80ff1212068f9ade40076e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "cc/test/fake_display_list_recording_source.h"

#include "cc/test/fake_display_list_raster_source.h"

namespace cc {

bool FakeDisplayListRecordingSource::IsSuitableForGpuRasterization() const {
  if (force_unsuitable_for_gpu_rasterization_)
    return false;
  return DisplayListRecordingSource::IsSuitableForGpuRasterization();
}

scoped_refptr<DisplayListRasterSource>
FakeDisplayListRecordingSource::CreateRasterSource(bool can_use_lcd) const {
  return FakeDisplayListRasterSource::CreateFromRecordingSourceWithWaitable(
      this, can_use_lcd, playback_allowed_event_);
}

}  // namespace cc