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

Unified Diff: webkit/compositor_bindings/web_compositor_support_software_output_device.cc

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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
« no previous file with comments | « webkit/compositor_bindings/web_compositor_support_software_output_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/compositor_bindings/web_compositor_support_software_output_device.cc
diff --git a/webkit/compositor_bindings/web_compositor_support_software_output_device.cc b/webkit/compositor_bindings/web_compositor_support_software_output_device.cc
deleted file mode 100644
index a8505a9d14ce7e2b1e64a08278e654b7c5ac6662..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/web_compositor_support_software_output_device.cc
+++ /dev/null
@@ -1,37 +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 "webkit/compositor_bindings/web_compositor_support_software_output_device.h"
-
-namespace webkit {
-
-WebCompositorSupportSoftwareOutputDevice::
- WebCompositorSupportSoftwareOutputDevice() {}
-
-WebCompositorSupportSoftwareOutputDevice::
- ~WebCompositorSupportSoftwareOutputDevice() {}
-
-WebKit::WebImage* WebCompositorSupportSoftwareOutputDevice::Lock(
- bool forWrite) {
- DCHECK(device_);
- image_ = device_->accessBitmap(forWrite);
- return &image_;
-}
-
-void WebCompositorSupportSoftwareOutputDevice::Unlock() {
- image_.reset();
-}
-
-void WebCompositorSupportSoftwareOutputDevice::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 webkit
« no previous file with comments | « webkit/compositor_bindings/web_compositor_support_software_output_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698