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

Side by Side Diff: content/child/npapi/webplugin_accelerated_surface_mac.h

Issue 1851093005: Remove content/child/npapi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_combined_01_02
Patch Set: rebase Created 4 years, 8 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
« no previous file with comments | « content/child/npapi/webplugin.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CONTENT_CHILD_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
7
8 #include "ui/gfx/geometry/size.h"
9 #include "ui/gfx/native_widget_types.h"
10
11 // Avoid having to include OpenGL headers here.
12 typedef struct _CGLContextObject* CGLContextObj;
13
14 namespace content {
15
16 // Interface class for interacting with an accelerated plugin surface, used
17 // for the Core Animation flavors of plugin drawing on the Mac.
18 class WebPluginAcceleratedSurface {
19 public:
20 virtual ~WebPluginAcceleratedSurface() {}
21
22 // Sets the size of the surface.
23 virtual void SetSize(const gfx::Size& size) = 0;
24
25 // Returns the context used to draw into this surface.
26 // If initializing the surface failed, this will be NULL.
27 virtual CGLContextObj context() = 0;
28
29 // Readies the surface for drawing. Must be called before any drawing session.
30 virtual void StartDrawing() = 0;
31
32 // Ends a drawing session. Changes to the surface may not be reflected until
33 // this is called.
34 virtual void EndDrawing() = 0;
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_ACCELERATED_SURFACE_MAC_H_
OLDNEW
« no previous file with comments | « content/child/npapi/webplugin.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698