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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 2036663003: Establish mojo service between Canvas (blink) and SurfaceManager (browser) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle); 192 void styleDidChange(const ComputedStyle* oldStyle, const ComputedStyle& newS tyle);
193 193
194 void notifyListenersCanvasChanged(); 194 void notifyListenersCanvasChanged();
195 195
196 // For Canvas HitRegions 196 // For Canvas HitRegions
197 bool isSupportedInteractiveCanvasFallback(const Element&); 197 bool isSupportedInteractiveCanvasFallback(const Element&);
198 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt&); 198 std::pair<Element*, String> getControlAndIdIfHitRegionExists(const LayoutPoi nt&);
199 String getIdFromControl(const Element*); 199 String getIdFromControl(const Element*);
200 200
201 // For OffscreenCanvas that controls this html canvas element 201 // For OffscreenCanvas that controls this html canvas element
202 CanvasSurfaceLayerBridge* surfaceLayerBridge() const { return m_surfaceLayer Bridge.get(); } 202 CanvasSurfaceLayerBridge* getSurfaceLayerBridge();
203 void createSurfaceLayerBridge();
204 203
205 protected: 204 protected:
206 void didMoveToNewDocument(Document& oldDocument) override; 205 void didMoveToNewDocument(Document& oldDocument) override;
207 206
208 private: 207 private:
209 explicit HTMLCanvasElement(Document&); 208 explicit HTMLCanvasElement(Document&);
210 209
211 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>; 210 using ContextFactoryVector = Vector<OwnPtr<CanvasRenderingContextFactory>>;
212 static ContextFactoryVector& renderingContextFactories(); 211 static ContextFactoryVector& renderingContextFactories();
213 static CanvasRenderingContextFactory* getRenderingContextFactory(int); 212 static CanvasRenderingContextFactory* getRenderingContextFactory(int);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 251
253 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 252 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
254 253
255 // Used for OffscreenCanvas that controls this HTML canvas element 254 // Used for OffscreenCanvas that controls this HTML canvas element
256 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 255 OwnPtr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
257 }; 256 };
258 257
259 } // namespace blink 258 } // namespace blink
260 259
261 #endif // HTMLCanvasElement_h 260 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698