Home | History | Annotate | Download | only in android
      1 // Copyright 2014 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_COMMON_ANDROID_SURFACE_TEXTURE_LOOKUP_H_
      6 #define CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_LOOKUP_H_
      7 
      8 #include "ui/gfx/native_widget_types.h"
      9 
     10 namespace content {
     11 
     12 class SurfaceTextureLookup {
     13  public:
     14   static SurfaceTextureLookup* GetInstance();
     15   static void InitInstance(SurfaceTextureLookup* instance);
     16 
     17   virtual gfx::AcceleratedWidget AcquireNativeWidget(int primary_id,
     18                                                      int secondary_id) = 0;
     19 
     20  protected:
     21   virtual ~SurfaceTextureLookup() {}
     22 };
     23 
     24 }  // namespace content
     25 
     26 #endif  // CONTENT_COMMON_ANDROID_SURFACE_TEXTURE_LOOKUP_H_
     27