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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 25455002: Remove WGC3D::width(), height(), reshape() implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index 52442c5194b190ed2af31b96718890c010634922..c46c688c070dbd49219145a29d7eaa2a43995d5a 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -231,8 +231,6 @@ WebGraphicsContext3DCommandBufferImpl::WebGraphicsContext3DCommandBufferImpl(
error_message_callback_(0),
swapbuffers_complete_callback_(0),
gpu_preference_(gfx::PreferIntegratedGpu),
- cached_width_(0),
- cached_height_(0),
weak_ptr_factory_(this),
initialized_(false),
gl_(NULL),
@@ -510,14 +508,6 @@ uint32_t WebGraphicsContext3DCommandBufferImpl::lastFlushID() {
return flush_id_;
}
-int WebGraphicsContext3DCommandBufferImpl::width() {
- return cached_width_;
-}
-
-int WebGraphicsContext3DCommandBufferImpl::height() {
- return cached_height_;
-}
-
DELEGATE_TO_GL_R(insertSyncPoint, InsertSyncPointCHROMIUM, unsigned int)
void WebGraphicsContext3DCommandBufferImpl::Destroy() {
@@ -597,17 +587,7 @@ void WebGraphicsContext3DCommandBufferImpl::postSubBufferCHROMIUM(
weak_ptr_factory_.GetWeakPtr()));
}
-void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) {
- reshapeWithScaleFactor(width, height, 1.f);
-}
-
-void WebGraphicsContext3DCommandBufferImpl::reshapeWithScaleFactor(
- int width, int height, float scale_factor) {
- cached_width_ = width;
- cached_height_ = height;
-
- gl_->ResizeCHROMIUM(width, height, scale_factor);
-}
+DELEGATE_TO_GL_3(reshapeWithScaleFactor, ResizeCHROMIUM, int, int, float)
void WebGraphicsContext3DCommandBufferImpl::synthesizeGLError(
WGC3Denum error) {

Powered by Google App Engine
This is Rietveld 408576698