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

Unified Diff: gpu/ipc/service/pass_through_image_transport_surface.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/pass_through_image_transport_surface.h ('k') | gpu/ipc/service/stream_texture_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/pass_through_image_transport_surface.cc
diff --git a/gpu/ipc/service/pass_through_image_transport_surface.cc b/gpu/ipc/service/pass_through_image_transport_surface.cc
index 0c2643f67788a193be3bbc9a261e120301f1f0fc..5f5ca9da9139c7348738d7c7a12cc8a85cc7777b 100644
--- a/gpu/ipc/service/pass_through_image_transport_surface.cc
+++ b/gpu/ipc/service/pass_through_image_transport_surface.cc
@@ -19,14 +19,14 @@ namespace gpu {
PassThroughImageTransportSurface::PassThroughImageTransportSurface(
GpuChannelManager* /* manager */,
GpuCommandBufferStub* stub,
- gfx::GLSurface* surface)
+ gl::GLSurface* surface)
: GLSurfaceAdapter(surface),
stub_(stub->AsWeakPtr()),
did_set_swap_interval_(false),
weak_ptr_factory_(this) {}
bool PassThroughImageTransportSurface::Initialize(
- gfx::GLSurface::Format format) {
+ gl::GLSurface::Format format) {
// The surface is assumed to have already been initialized.
if (!stub_.get() || !stub_->decoder())
return false;
@@ -43,7 +43,7 @@ void PassThroughImageTransportSurface::Destroy() {
gfx::SwapResult PassThroughImageTransportSurface::SwapBuffers() {
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
- gfx::SwapResult result = gfx::GLSurfaceAdapter::SwapBuffers();
+ gfx::SwapResult result = gl::GLSurfaceAdapter::SwapBuffers();
FinishSwapBuffers(std::move(latency_info), result);
return result;
}
@@ -57,7 +57,7 @@ void PassThroughImageTransportSurface::SwapBuffersAsync(
// of this class. Callback will not be called once the instance of this class
// is destroyed. However, this also means that the callback can be run on
// the calling thread only.
- gfx::GLSurfaceAdapter::SwapBuffersAsync(base::Bind(
+ gl::GLSurfaceAdapter::SwapBuffersAsync(base::Bind(
&PassThroughImageTransportSurface::FinishSwapBuffersAsync,
weak_ptr_factory_.GetWeakPtr(), base::Passed(&latency_info), callback));
}
@@ -69,7 +69,7 @@ gfx::SwapResult PassThroughImageTransportSurface::PostSubBuffer(int x,
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
gfx::SwapResult result =
- gfx::GLSurfaceAdapter::PostSubBuffer(x, y, width, height);
+ gl::GLSurfaceAdapter::PostSubBuffer(x, y, width, height);
FinishSwapBuffers(std::move(latency_info), result);
return result;
}
@@ -82,7 +82,7 @@ void PassThroughImageTransportSurface::PostSubBufferAsync(
const GLSurface::SwapCompletionCallback& callback) {
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
- gfx::GLSurfaceAdapter::PostSubBufferAsync(
+ gl::GLSurfaceAdapter::PostSubBufferAsync(
x, y, width, height,
base::Bind(&PassThroughImageTransportSurface::FinishSwapBuffersAsync,
weak_ptr_factory_.GetWeakPtr(), base::Passed(&latency_info),
@@ -92,7 +92,7 @@ void PassThroughImageTransportSurface::PostSubBufferAsync(
gfx::SwapResult PassThroughImageTransportSurface::CommitOverlayPlanes() {
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
- gfx::SwapResult result = gfx::GLSurfaceAdapter::CommitOverlayPlanes();
+ gfx::SwapResult result = gl::GLSurfaceAdapter::CommitOverlayPlanes();
FinishSwapBuffers(std::move(latency_info), result);
return result;
}
@@ -101,12 +101,12 @@ void PassThroughImageTransportSurface::CommitOverlayPlanesAsync(
const GLSurface::SwapCompletionCallback& callback) {
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
- gfx::GLSurfaceAdapter::CommitOverlayPlanesAsync(base::Bind(
+ gl::GLSurfaceAdapter::CommitOverlayPlanesAsync(base::Bind(
&PassThroughImageTransportSurface::FinishSwapBuffersAsync,
weak_ptr_factory_.GetWeakPtr(), base::Passed(&latency_info), callback));
}
-bool PassThroughImageTransportSurface::OnMakeCurrent(gfx::GLContext* context) {
+bool PassThroughImageTransportSurface::OnMakeCurrent(gl::GLContext* context) {
if (!did_set_swap_interval_) {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableGpuVsync))
« no previous file with comments | « gpu/ipc/service/pass_through_image_transport_surface.h ('k') | gpu/ipc/service/stream_texture_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698