blob: e817703c735f1358260534c4d7d2b3fdd0b4c985 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright (c) 2006-2008 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 "skia/ext/platform_device.h"
namespace skia {
PlatformDevice::PlatformDevice(const SkBitmap& bitmap)
: SkDevice(bitmap) {
SetPlatformDevice(this, this);
}
void PlatformDevice::EndPlatformPaint() {
// We don't need to do anything on Linux here.
}
void PlatformDevice::DrawToNativeContext(PlatformSurface surface, int x, int y,
const PlatformRect* src_rect) {
// Should never be called on Linux.
SkASSERT(false);
}
} // namespace skia
|