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

Side by Side Diff: Source/core/platform/graphics/chromium/Canvas2DLayerBridge.h

Issue 26541008: Web setting for canvas2d msaa (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: working? Created 7 years, 2 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
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 }; 62 };
63 63
64 class Canvas2DLayerBridge : public WebKit::WebExternalTextureLayerClient, public SkDeferredCanvas::NotificationClient, public DoublyLinkedListNode<Canvas2DLayer Bridge>, public RefCounted<Canvas2DLayerBridge> { 64 class Canvas2DLayerBridge : public WebKit::WebExternalTextureLayerClient, public SkDeferredCanvas::NotificationClient, public DoublyLinkedListNode<Canvas2DLayer Bridge>, public RefCounted<Canvas2DLayerBridge> {
65 WTF_MAKE_NONCOPYABLE(Canvas2DLayerBridge); 65 WTF_MAKE_NONCOPYABLE(Canvas2DLayerBridge);
66 public: 66 public:
67 enum OpacityMode { 67 enum OpacityMode {
68 Opaque, 68 Opaque,
69 NonOpaque 69 NonOpaque
70 }; 70 };
71 71
72 static PassRefPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D>, const IntSize&, OpacityMode); 72 static PassRefPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D>, const IntSize&, OpacityMode, int msaaSampleCount);
73 73
74 virtual ~Canvas2DLayerBridge(); 74 virtual ~Canvas2DLayerBridge();
75 75
76 // WebKit::WebExternalTextureLayerClient implementation. 76 // WebKit::WebExternalTextureLayerClient implementation.
77 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; 77 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE;
78 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*, WebKit::WebE xternalBitmap*) OVERRIDE; 78 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*, WebKit::WebE xternalBitmap*) OVERRIDE;
79 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR IDE; 79 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR IDE;
80 80
81 // SkDeferredCanvas::NotificationClient implementation 81 // SkDeferredCanvas::NotificationClient implementation
82 virtual void prepareForDraw() OVERRIDE; 82 virtual void prepareForDraw() OVERRIDE;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 MailboxInfo(const MailboxInfo&); 134 MailboxInfo(const MailboxInfo&);
135 MailboxInfo() {} 135 MailboxInfo() {}
136 }; 136 };
137 MailboxInfo* createMailboxInfo(); 137 MailboxInfo* createMailboxInfo();
138 138
139 uint32_t m_lastImageId; 139 uint32_t m_lastImageId;
140 Vector<MailboxInfo> m_mailboxes; 140 Vector<MailboxInfo> m_mailboxes;
141 }; 141 };
142 } 142 }
143 #endif 143 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698