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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h

Issue 1999143002: Add CanvasSurfaceLayerBridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef CanvasSurfaceLayerBridge_h
6 #define CanvasSurfaceLayerBridge_h
7
8 #include "base/memory/ref_counted.h"
9 #include "platform/PlatformExport.h"
10 #include "wtf/OwnPtr.h"
11
12 namespace cc {
13 // TODO(611796): replace SolidColorLayer with SurfaceLayer
14 class SolidColorLayer;
15 }
16
17 namespace blink {
18
19 class WebLayer;
20
21 class PLATFORM_EXPORT CanvasSurfaceLayerBridge {
22 public:
23 explicit CanvasSurfaceLayerBridge();
24 ~CanvasSurfaceLayerBridge();
25 cc::SolidColorLayer* solidColorLayer() const { return m_solidColorLayer.get( ); }
Justin Novosad 2016/05/20 19:58:26 This method is not needed.
26 WebLayer* getWebLayer() const { return m_webLayer.get(); }
Justin Novosad 2016/05/20 19:58:26 Just "webLayer". In blink, we only put a verb pre
danakj 2016/05/20 20:58:49 Making it webLayer() means it will become WebLayer
27
28 private:
29 scoped_refptr<cc::SolidColorLayer> m_solidColorLayer;
30 OwnPtr<WebLayer> m_webLayer;
31 };
32
33 }
34
35 #endif // CanvasSurfaceLayerBridge
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698