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

Unified Diff: cc/software_output_device.h

Issue 12912006: Part 4 of cc/ directory shuffles: output (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/software_output_device.h
diff --git a/cc/software_output_device.h b/cc/software_output_device.h
deleted file mode 100644
index f1a795f00f8f82fc89c7ad5538b5f9fbe447d3ac..0000000000000000000000000000000000000000
--- a/cc/software_output_device.h
+++ /dev/null
@@ -1,56 +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_SOFTWARE_OUTPUT_DEVICE_H_
-#define CC_SOFTWARE_OUTPUT_DEVICE_H_
-
-#include "base/basictypes.h"
-#include "cc/base/cc_export.h"
-#include "skia/ext/refptr.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/size.h"
-#include "ui/gfx/vector2d.h"
-#include "ui/surface/transport_dib.h"
-
-class SkBitmap;
-class SkDevice;
-class SkCanvas;
-
-namespace cc {
-
-class SoftwareFrameData;
-
-// This is a "tear-off" class providing software drawing support to
-// OutputSurface, such as to a platform-provided window framebuffer.
-class CC_EXPORT SoftwareOutputDevice {
- public:
-
- SoftwareOutputDevice();
- virtual ~SoftwareOutputDevice();
-
- // SoftwareOutputDevice implementation
- virtual void Resize(const gfx::Size& size);
-
- virtual SkCanvas* BeginPaint(const gfx::Rect& damage_rect);
- virtual void EndPaint(SoftwareFrameData* frame_data=NULL);
-
- virtual void CopyToBitmap(const gfx::Rect& rect, SkBitmap* output);
- virtual void Scroll(const gfx::Vector2d& delta,
- const gfx::Rect& clip_rect);
-
- // TODO(skaslev) Remove this after UberCompositor lands.
- virtual void ReclaimDIB(TransportDIB::Handle handle);
-
-protected:
- gfx::Size viewport_size_;
- gfx::Rect damage_rect_;
- skia::RefPtr<SkDevice> device_;
- skia::RefPtr<SkCanvas> canvas_;
-
- DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
-};
-
-} // namespace cc
-
-#endif // CC_SOFTWARE_OUTPUT_DEVICE_H_

Powered by Google App Engine
This is Rietveld 408576698