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

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

Issue 2455983005: Refactor AcceleratedStaticBitmapImage (Closed)
Patch Set: No long keep WeakPtr<DrawingBuffer> Created 4 years, 1 month 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 WebGraphicsContext3DProviderWrapper_h
6 #define WebGraphicsContext3DProviderWrapper_h
7
8 #include "public/platform/WebGraphicsContext3DProvider.h"
9 #include "wtf/WeakPtr.h"
10
11 namespace blink {
12
13 class PLATFORM_EXPORT WebGraphicsContext3DProviderWrapper {
14 public:
15 WebGraphicsContext3DProviderWrapper(WebGraphicsContext3DProvider* provider)
16 : m_contextProvider(provider), m_weakPtrFactory(this) {}
17 WeakPtr<WebGraphicsContext3DProviderWrapper> createWeakPtr() {
18 return m_weakPtrFactory.createWeakPtr();
19 }
20 WebGraphicsContext3DProvider* contextProvider() { return m_contextProvider; }
21
22 private:
23 WebGraphicsContext3DProvider* m_contextProvider;
Justin Novosad 2016/11/08 19:38:54 This is your problem: this is supposed to be a uni
xidachen 2016/11/08 20:30:58 Yeah, that makes perfect sense. After I made this
24 WeakPtrFactory<WebGraphicsContext3DProviderWrapper> m_weakPtrFactory;
25 };
26
27 } // namespace blink
28
29 #endif // WebGraphicsContext3DProviderWrapper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698