Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7263)

Unified Diff: cc/test/fake_software_output_device.cc

Issue 12379055: Changed SoftwareOutputDevice interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/test/fake_software_output_device.cc
diff --git a/cc/test/fake_software_output_device.cc b/cc/test/fake_software_output_device.cc
deleted file mode 100644
index eebf2b97772bc68ee259f2d9c238101ac1b9b267..0000000000000000000000000000000000000000
--- a/cc/test/fake_software_output_device.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2012 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_software_output_device.h"
-
-namespace cc {
-
-FakeSoftwareOutputDevice::FakeSoftwareOutputDevice() {}
-
-FakeSoftwareOutputDevice::~FakeSoftwareOutputDevice() {}
-
-WebKit::WebImage* FakeSoftwareOutputDevice::Lock(bool forWrite) {
- DCHECK(device_);
- image_ = device_->accessBitmap(forWrite);
- return &image_;
-}
-
-void FakeSoftwareOutputDevice::Unlock() {
- image_.reset();
-}
-
-void FakeSoftwareOutputDevice::DidChangeViewportSize(gfx::Size size) {
- if (device_.get() &&
- size.width() == device_->width() &&
- size.height() == device_->height())
- return;
-
- device_ = skia::AdoptRef(new SkDevice(
- SkBitmap::kARGB_8888_Config, size.width(), size.height(), true));
-}
-
-} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698