summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_display_list_recording_source.cc
blob: b85fed1ba6c9424d318006931d2422f7d99953b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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"

namespace cc {

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

void FakeDisplayListRecordingSource::
    SetUnsuitableForGpuRasterizationForTesting() {
  force_unsuitable_for_gpu_rasterization_ = true;
}

}  // namespace cc