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

Side by Side Diff: webkit/compositor_bindings/web_io_surface_layer_impl.cc

Issue 12428009: Remove WebIOSurfaceLayer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove include from web_compositor_support_impl.cc 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/web_io_surface_layer_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "webkit/compositor_bindings/web_io_surface_layer_impl.h"
6
7 #include "cc/io_surface_layer.h"
8 #include "webkit/compositor_bindings/web_layer_impl.h"
9
10 using cc::IOSurfaceLayer;
11
12 namespace WebKit {
13
14 WebIOSurfaceLayerImpl::WebIOSurfaceLayerImpl()
15 : layer_(new WebLayerImpl(IOSurfaceLayer::create())) {
16 layer_->layer()->setIsDrawable(true);
17 }
18
19 WebIOSurfaceLayerImpl::~WebIOSurfaceLayerImpl() {}
20
21 void WebIOSurfaceLayerImpl::setIOSurfaceProperties(unsigned io_surface_id,
22 WebSize size) {
23 static_cast<IOSurfaceLayer*>(layer_->layer())
24 ->setIOSurfaceProperties(io_surface_id, size);
25 }
26
27 WebLayer* WebIOSurfaceLayerImpl::layer() { return layer_.get(); }
28
29 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_io_surface_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698