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

Side by Side Diff: content/plugin/webplugin_accelerated_surface_proxy_mac.h

Issue 1852593004: Remove content/plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_npapi_test_plugin
Patch Set: . 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_MAC_H_
6 #define CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_MAC_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "content/child/npapi/webplugin_accelerated_surface_mac.h"
11 #include "ui/gl/gpu_preference.h"
12
13 class AcceleratedSurface;
14
15 namespace content {
16 class WebPluginProxy;
17
18 // Out-of-process implementation of WebPluginAcceleratedSurface that proxies
19 // calls through a WebPluginProxy.
20 class WebPluginAcceleratedSurfaceProxy : public WebPluginAcceleratedSurface {
21 public:
22 // Creates a new WebPluginAcceleratedSurfaceProxy that uses plugin_proxy
23 // to proxy calls. plugin_proxy must outlive this object. Returns NULL if
24 // initialization fails.
25 static WebPluginAcceleratedSurfaceProxy* Create(
26 WebPluginProxy* plugin_proxy,
27 gfx::GpuPreference gpu_preference);
28
29 ~WebPluginAcceleratedSurfaceProxy() override;
30
31 // WebPluginAcceleratedSurface implementation.
32 void SetSize(const gfx::Size& size) override;
33 CGLContextObj context() override;
34 void StartDrawing() override;
35 void EndDrawing() override;
36
37 private:
38 WebPluginAcceleratedSurfaceProxy(WebPluginProxy* plugin_proxy,
39 AcceleratedSurface* surface);
40
41 WebPluginProxy* plugin_proxy_; // Weak ref.
42 AcceleratedSurface* surface_;
43
44 DISALLOW_COPY_AND_ASSIGN(WebPluginAcceleratedSurfaceProxy);
45 };
46
47 } // namespace content
48
49 #endif // CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_MAC_H_
OLDNEW
« no previous file with comments | « content/plugin/plugin_thread.cc ('k') | content/plugin/webplugin_accelerated_surface_proxy_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698