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

Unified Diff: remoting/client/gl_cursor_feedback_texture.cc

Issue 2272793003: [Remoting Android] New touch feedback texture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 years, 4 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/gl_cursor_feedback_texture.cc
diff --git a/remoting/client/gl_cursor_feedback_texture.cc b/remoting/client/gl_cursor_feedback_texture.cc
index 7a82b328651c70a5f06410c80f92eac20cc76e5f..d41d22228ea15024a407228aaf4d4cbe75cee0a1 100644
--- a/remoting/client/gl_cursor_feedback_texture.cc
+++ b/remoting/client/gl_cursor_feedback_texture.cc
@@ -10,20 +10,22 @@ namespace remoting {
namespace {
-const int kColorRingsCount = 4;
+const int kColorRingsCount = 5;
const int kFeedbackTexturePixelDiameter = 512;
const int kFeedbackTexturePixelRadius = kFeedbackTexturePixelDiameter / 2;
// RGBA8888 colors. From inside to outside.
const uint8_t kFeedbackRingColors[kColorRingsCount]
[GlRenderLayer::kBytesPerPixel] = {
- {0, 0, 0, 0}, // transparent black
- {0xff, 0xff, 0xff, 0xff}, // white
- {0, 0, 0, 0xff}, // black
- {0, 0, 0, 0} // transparent black
+ {0x0, 0x0, 0x0, 0x7f}, // Black
+ {0x0, 0x0, 0x0, 0x7f}, // Black
+ {0xff, 0xff, 0xff, 0x7f}, // White
+ {0xff, 0xff, 0xff, 0x7f}, // White
+ {0xff, 0xff, 0xff, 0} // Transparent White
};
-const float kFeedbackRadiusStops[kColorRingsCount] = {0.0f, 0.8f, 0.9f, 1.0f};
+const float kFeedbackRadiusStops[kColorRingsCount] =
+ {0.0f, 0.85f, 0.9f, 0.95f, 1.0f};
uint32_t GetColorByRadius(float radius) {
int ring_index = kColorRingsCount - 1;
« no previous file with comments | « remoting/android/java/src/org/chromium/chromoting/TrackpadInputStrategy.java ('k') | remoting/client/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698