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

Unified Diff: webkit/compositor_bindings/web_nine_patch_layer_impl.cc

Issue 12496013: Move compositor bindings implementations out of WebKit::, fix style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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: webkit/compositor_bindings/web_nine_patch_layer_impl.cc
diff --git a/webkit/compositor_bindings/web_nine_patch_layer_impl.cc b/webkit/compositor_bindings/web_nine_patch_layer_impl.cc
deleted file mode 100644
index 03c32fbcaa042cd066438ffb01d9ffe22b34c2fd..0000000000000000000000000000000000000000
--- a/webkit/compositor_bindings/web_nine_patch_layer_impl.cc
+++ /dev/null
@@ -1,31 +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_nine_patch_layer_impl.h"
-
-#include "cc/layers/nine_patch_layer.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-#include "ui/gfx/rect.h"
-#include "webkit/compositor_bindings/web_layer_impl.h"
-
-using cc::NinePatchLayer;
-
-namespace WebKit {
-
-WebNinePatchLayerImpl::WebNinePatchLayerImpl()
- : layer_(new WebLayerImpl(NinePatchLayer::Create())) {
- layer_->layer()->SetIsDrawable(true);
-}
-
-WebNinePatchLayerImpl::~WebNinePatchLayerImpl() {}
-
-WebLayer* WebNinePatchLayerImpl::layer() { return layer_.get(); }
-
-void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap,
- const WebRect& aperture) {
- static_cast<NinePatchLayer*>(layer_->layer())->SetBitmap(bitmap,
- gfx::Rect(aperture));
-}
-
-} // namespace WebKit
« no previous file with comments | « webkit/compositor_bindings/web_nine_patch_layer_impl.h ('k') | webkit/compositor_bindings/web_rendering_stats_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698