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

Unified Diff: cc/test/fake_web_compositor_software_output_device.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mynits Created 8 years 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_web_compositor_software_output_device.h
diff --git a/cc/test/fake_web_compositor_software_output_device.h b/cc/test/fake_web_compositor_software_output_device.h
deleted file mode 100644
index 6b17a5dfa4de2fb86f294cc33822d93d36af2a55..0000000000000000000000000000000000000000
--- a/cc/test/fake_web_compositor_software_output_device.h
+++ /dev/null
@@ -1,45 +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.
-
-#ifndef CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
-#define CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_
-
-#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
-#include "third_party/skia/include/core/SkDevice.h"
-#include <public/WebCompositorSoftwareOutputDevice.h>
-#include <public/WebImage.h>
-#include <public/WebSize.h>
-
-namespace WebKit {
-
-class FakeWebCompositorSoftwareOutputDevice : public WebCompositorSoftwareOutputDevice {
-public:
- virtual WebImage* lock(bool forWrite) OVERRIDE
- {
- DCHECK(m_device.get());
- m_image = m_device->accessBitmap(forWrite);
- return &m_image;
- }
- virtual void unlock() OVERRIDE
- {
- m_image.reset();
- }
-
- virtual void didChangeViewportSize(WebSize size) OVERRIDE
- {
- if (m_device.get() && size.width == m_device->width() && size.height == m_device->height())
- return;
-
- m_device.reset(new SkDevice(SkBitmap::kARGB_8888_Config, size.width, size.height, true));
- }
-
-private:
- scoped_ptr<SkDevice> m_device;
- WebImage m_image;
-};
-
-} // namespace WebKit
-
-#endif // CC_TEST_FAKE_WEB_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_H_

Powered by Google App Engine
This is Rietveld 408576698