Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |