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

Unified Diff: remoting/client/display/gl_cursor_feedback.cc

Issue 2614443003: Moving the GL implementation details into a sub folder for client display. (Closed)
Patch Set: Reverting the renderer.cc file. Created 3 years, 12 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: remoting/client/display/gl_cursor_feedback.cc
diff --git a/remoting/client/gl_cursor_feedback.cc b/remoting/client/display/gl_cursor_feedback.cc
similarity index 85%
rename from remoting/client/gl_cursor_feedback.cc
rename to remoting/client/display/gl_cursor_feedback.cc
index c3fcbb49805bcdcd450b2acb02c78e7b644059e9..41736aed0193c7700b2fff1081c0f58973ff7ffa 100644
--- a/remoting/client/gl_cursor_feedback.cc
+++ b/remoting/client/display/gl_cursor_feedback.cc
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "remoting/client/gl_cursor_feedback.h"
+#include "remoting/client/display/gl_cursor_feedback.h"
#include <math.h>
#include <array>
#include "base/logging.h"
-#include "remoting/client/gl_canvas.h"
-#include "remoting/client/gl_cursor_feedback_texture.h"
-#include "remoting/client/gl_math.h"
-#include "remoting/client/gl_render_layer.h"
-#include "remoting/client/gl_texture_ids.h"
+#include "remoting/client/display/gl_canvas.h"
+#include "remoting/client/display/gl_cursor_feedback_texture.h"
+#include "remoting/client/display/gl_math.h"
+#include "remoting/client/display/gl_render_layer.h"
+#include "remoting/client/display/gl_texture_ids.h"
namespace {
@@ -80,8 +80,8 @@ bool GlCursorFeedback::Draw() {
float diameter = GetExpansionCoefficient(progress) * max_diameter_;
std::array<float, 8> positions;
FillRectangleVertexPositions(cursor_x_ - diameter / 2,
- cursor_y_ - diameter / 2,
- diameter, diameter, &positions);
+ cursor_y_ - diameter / 2, diameter, diameter,
+ &positions);
layer_->SetVertexPositions(positions);
// Linear fade-out.

Powered by Google App Engine
This is Rietveld 408576698