Commit d95c2e08 authored by Adlai Holler's avatar Adlai Holler Committed by Commit Bot

Migrate skia_surfaceless_gl_renderer to GrDirectContext

Just a name update to keep up with Skia.

Change-Id: I61118e4cf4a18f5bdadbd7005dbf1f69be12e223
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2470464
Auto-Submit: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Kroeger <rjkroege@chromium.org>
Reviewed-by: default avatarRobert Kroeger <rjkroege@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817032}
parent 9cdd5ba8
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "third_party/skia/include/core/SkDeferredDisplayListRecorder.h" #include "third_party/skia/include/core/SkDeferredDisplayListRecorder.h"
#include "third_party/skia/include/core/SkTypeface.h" #include "third_party/skia/include/core/SkTypeface.h"
#include "third_party/skia/include/gpu/GrBackendSurface.h" #include "third_party/skia/include/gpu/GrBackendSurface.h"
#include "third_party/skia/include/gpu/GrDirectContext.h"
#include "third_party/skia/include/gpu/gl/GrGLAssembleInterface.h" #include "third_party/skia/include/gpu/gl/GrGLAssembleInterface.h"
#include "third_party/skia/include/gpu/gl/GrGLInterface.h" #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
#include "ui/display/types/display_snapshot.h" #include "ui/display/types/display_snapshot.h"
...@@ -80,7 +81,7 @@ class SurfacelessSkiaGlRenderer::BufferWrapper { ...@@ -80,7 +81,7 @@ class SurfacelessSkiaGlRenderer::BufferWrapper {
gl::GLImage* image() const { return image_.get(); } gl::GLImage* image() const { return image_.get(); }
SkSurface* sk_surface() const { return sk_surface_.get(); } SkSurface* sk_surface() const { return sk_surface_.get(); }
bool Initialize(GrContext* gr_context, bool Initialize(GrDirectContext* gr_context,
gfx::AcceleratedWidget widget, gfx::AcceleratedWidget widget,
const gfx::Size& size); const gfx::Size& size);
void BindFramebuffer(); void BindFramebuffer();
...@@ -106,7 +107,7 @@ SurfacelessSkiaGlRenderer::BufferWrapper::~BufferWrapper() { ...@@ -106,7 +107,7 @@ SurfacelessSkiaGlRenderer::BufferWrapper::~BufferWrapper() {
} }
bool SurfacelessSkiaGlRenderer::BufferWrapper::Initialize( bool SurfacelessSkiaGlRenderer::BufferWrapper::Initialize(
GrContext* gr_context, GrDirectContext* gr_context,
gfx::AcceleratedWidget widget, gfx::AcceleratedWidget widget,
const gfx::Size& size) { const gfx::Size& size) {
glGenTextures(1, &gl_tex_); glGenTextures(1, &gl_tex_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment