PageClientEfl.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. Copyright (C) 2012 Samsung Electronics
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2.1 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public License
  12. along with this library; see the file COPYING.LIB. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  14. Boston, MA 02110-1301, USA.
  15. */
  16. #include "config.h"
  17. #include "PageClientEfl.h"
  18. #include "ewk_view_private.h"
  19. namespace WebCore {
  20. class IntRect;
  21. }
  22. PageClientEfl::PageClientEfl(Evas_Object* view)
  23. : m_view(view)
  24. {
  25. ASSERT(m_view);
  26. }
  27. PageClientEfl::~PageClientEfl()
  28. {
  29. }
  30. #if USE(ACCELERATED_COMPOSITING)
  31. bool PageClientEfl::createEvasObjectForAcceleratedCompositing(Evas_Native_Surface* nativeSurface, const WebCore::IntRect& rect)
  32. {
  33. return ewk_view_accelerated_compositing_object_create(m_view, nativeSurface, rect);
  34. }
  35. WebCore::GraphicsContext3D* PageClientEfl::acceleratedCompositingContext()
  36. {
  37. return ewk_view_accelerated_compositing_context_get(m_view);
  38. }
  39. #endif